Ignore:
Timestamp:
05/04/07 14:10:51 (18 years ago)
Author:
r2d
Message:
  • corrected a M/S bug in sv8 decoding
  • changed Max_used_band usage in sv7 decoding, so it as the same meaning as in sv8 decoding
File:
1 edited

Legend:

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

    r298 r310  
    105105
    106106        si->bitrate            = 0;
    107         frames                 = mpc_bits_read(r, 32);
     107        frames                 = (mpc_bits_read(r, 16) << 16) | mpc_bits_read(r, 16);
    108108        mpc_bits_read(r, 1); // intensity stereo : should be 0
    109109        si->ms                 = mpc_bits_read(r, 1);
     
    185185        mpc_bits_reader r = *r_in;
    186186
    187         CRC = mpc_bits_read(&r, 32);
     187        CRC = (mpc_bits_read(&r, 16) << 16) | mpc_bits_read(&r, 16);
    188188        if (CRC != crc32(r.buff + 1 - (r.count >> 3), (int)block_size - 4))
    189189                return MPC_STATUS_FILE;
Note: See TracChangeset for help on using the changeset viewer.