Ignore:
Timestamp:
05/04/07 14:10:51 (17 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/mpc_bits_reader.h

    r296 r310  
    4444extern const mpc_uint32_t Cnk_lost[MAX_ENUM / 2][MAX_ENUM];
    4545
     46// can read up to 31 bits
    4647static mpc_inline mpc_uint32_t mpc_bits_read(mpc_bits_reader * r, const unsigned int nb_bits)
    4748{
     
    5859        }
    5960
    60         return ret & (-1u >> (32 - nb_bits));
     61        return ret & ((1 << nb_bits) - 1);
    6162}
    6263
Note: See TracChangeset for help on using the changeset viewer.