Ignore:
Timestamp:
04/22/07 15:43:13 (17 years ago)
Author:
r2d
Message:

made huffman tables smaller

File:
1 edited

Legend:

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

    r237 r288  
    6666static mpc_inline mpc_int32_t mpc_bits_huff_dec(mpc_bits_reader * r, const mpc_huffman *Table)
    6767{
    68         mpc_uint32_t code;
    69         code = ((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2])
    70                         << (16 - r->count);
     68        mpc_uint16_t code;
     69        code = ((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count;
    7170
    7271        while (code < Table->Code) Table++;
Note: See TracChangeset for help on using the changeset viewer.