Changeset 477 for libmpc/trunk/libmpcdec


Ignore:
Timestamp:
01/01/12 18:05:19 (14 years ago)
Author:
r2d
Message:

removed some gcc warnings and compilation issues

Location:
libmpc/trunk/libmpcdec
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r476 r477  
    7979}
    8080
    81 // Returns the amount of unread bytes in the demux buffer.
    82 static mpc_uint32_t mpc_unread_bytes(mpc_demux * d) {
    83         mpc_int32_t unread_bytes = mpc_unread_bytes_unchecked(d);
    84 
    85         if (unread_bytes < 0) return 0;
    86        
    87         return (mpc_uint32_t) unread_bytes;
    88 }
    89 
    90 
    9181
    9282// Returns the number of bytes available in the buffer.
     
    9787        int offset = 0;
    9888
    99         if ((mpc_int32_t)
    100                 unread_bytes < 0) return 0; // Error - we've been reading past the end of the buffer - abort
     89        if ((mpc_int32_t) unread_bytes < 0)
     90                return 0; // Error - we've been reading past the end of the buffer - abort
    10191
    10292        if (min_bytes == 0 || min_bytes > DEMUX_BUFFER_SIZE ||
  • libmpc/trunk/libmpcdec/streaminfo.c

    r473 r477  
    109109streaminfo_read_header_sv7(mpc_streaminfo* si, mpc_bits_reader * r)
    110110{
    111     mpc_uint16_t Estimatedpeak_title = 0;
    112111        mpc_uint32_t frames, last_frame_samples;
    113112
     
    121120        mpc_bits_read(r, 2); // Link ?
    122121        si->sample_freq        = samplefreqs[mpc_bits_read(r, 2)];
    123         Estimatedpeak_title    = (mpc_uint16_t) mpc_bits_read(r, 16);   // read the ReplayGain data
     122        mpc_bits_read(r, 16);   // skip MaxLevel (maximum level of input PCM)
    124123        si->gain_title         = (mpc_uint16_t) mpc_bits_read(r, 16);
    125124        si->peak_title         = (mpc_uint16_t) mpc_bits_read(r, 16);
Note: See TracChangeset for help on using the changeset viewer.