Changeset 237


Ignore:
Timestamp:
03/25/07 22:13:11 (14 years ago)
Author:
r2d
Message:

corrected the high bitrate bug (decoder only bug)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcdec/mpc_bits_reader.h

    r219 r237  
    5353        ret = (r->buff[0] | (r->buff[-1] << 8)) >> r->count;
    5454        if (nb_bits > (16 - r->count)) {
    55                 ret |= ((r->buff[-2] << 16) | (r->buff[-3] << 24)) >> r->count;
     55                ret |= (mpc_uint32_t)((r->buff[-2] << 16) | (r->buff[-3] << 24)) >> r->count;
    5656                if (nb_bits > 24 && r->count != 0)
    5757                        ret |= r->buff[-4] << (32 - r->count);
Note: See TracChangeset for help on using the changeset viewer.