Changeset 342 for libmpc/trunk/libmpcdec/mpc_bits_reader.h
- Timestamp:
- 08/20/07 22:37:04 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_bits_reader.h
r338 r342 67 67 { 68 68 mpc_uint16_t code; 69 code = ( (r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count;69 code = (mpc_uint16_t)((((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count) & 0xFFFF); 70 70 71 71 while (code < Table->Code) Table++; … … 82 82 mpc_huff_lut tmp; 83 83 const mpc_huffman * Table; 84 code = ( (r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count;84 code = (mpc_uint16_t)((((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count) & 0xFFFF); 85 85 86 86 tmp = can->lut[code >> (16 - LUT_DEPTH)]; … … 107 107 mpc_huff_lut tmp; 108 108 const mpc_huffman * Table; 109 code = (mpc_uint16_t)((( r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count);109 code = (mpc_uint16_t)((((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count) & 0xFFFF); 110 110 111 111 tmp = lut->lut[code >> (16 - LUT_DEPTH)];
Note: See TracChangeset
for help on using the changeset viewer.