Changeset 477 for libmpc/trunk/libmpcdec
- Timestamp:
- 01/01/12 18:05:19 (14 years ago)
- Location:
- libmpc/trunk/libmpcdec
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_demux.c
r476 r477 79 79 } 80 80 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 91 81 92 82 // Returns the number of bytes available in the buffer. … … 97 87 int offset = 0; 98 88 99 if ((mpc_int32_t) 100 unread_bytes < 0)return 0; // Error - we've been reading past the end of the buffer - abort89 if ((mpc_int32_t) unread_bytes < 0) 90 return 0; // Error - we've been reading past the end of the buffer - abort 101 91 102 92 if (min_bytes == 0 || min_bytes > DEMUX_BUFFER_SIZE || -
libmpc/trunk/libmpcdec/streaminfo.c
r473 r477 109 109 streaminfo_read_header_sv7(mpc_streaminfo* si, mpc_bits_reader * r) 110 110 { 111 mpc_uint16_t Estimatedpeak_title = 0;112 111 mpc_uint32_t frames, last_frame_samples; 113 112 … … 121 120 mpc_bits_read(r, 2); // Link ? 122 121 si->sample_freq = samplefreqs[mpc_bits_read(r, 2)]; 123 Estimatedpeak_title = (mpc_uint16_t) mpc_bits_read(r, 16); // read the ReplayGain data122 mpc_bits_read(r, 16); // skip MaxLevel (maximum level of input PCM) 124 123 si->gain_title = (mpc_uint16_t) mpc_bits_read(r, 16); 125 124 si->peak_title = (mpc_uint16_t) mpc_bits_read(r, 16);
Note: See TracChangeset
for help on using the changeset viewer.