diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-19 20:37:21 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-23 04:29:01 +0400 |
commit | ddd0d21442631f3f67d4e69edad4911bd45449d1 (patch) | |
tree | 8c02718350044a998276f7639c2cc6cacf706146 /celt | |
parent | 414fd270567e8576dca35bfcf146a526ff24d834 (diff) |
collapse mask cleanup
Diffstat (limited to 'celt')
-rw-r--r-- | celt/bands.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/celt/bands.c b/celt/bands.c index ccd07fb8..89bfd457 100644 --- a/celt/bands.c +++ b/celt/bands.c @@ -944,13 +944,13 @@ static unsigned quant_partition(int encode, const CELTMode *m, int i, celt_norm folding will be done to the side. */ cm |= quant_partition(encode, m, i, Y, N, sbits, spread, B, next_lowband2, ec, remaining_bits, LM, - seed, MULT16_16_P15(gain,side), fill>>B)<<((B0>>1)&(-1)); + seed, MULT16_16_P15(gain,side), fill>>B)<<(B0>>1); } else { /* For a stereo split, the high bits of fill are always zero, so no folding will be done to the side. */ cm = quant_partition(encode, m, i, Y, N, sbits, spread, B, next_lowband2, ec, remaining_bits, LM, - seed, MULT16_16_P15(gain,side), fill>>B)<<((B0>>1)&(-1)); + seed, MULT16_16_P15(gain,side), fill>>B)<<(B0>>1); rebalance = sbits - (rebalance-*remaining_bits); if (rebalance > 3<<BITRES && itheta!=16384) mbits += rebalance - (3<<BITRES); @@ -1295,13 +1295,13 @@ static unsigned quant_band_stereo(int encode, const CELTMode *m, int i, celt_nor folding will be done to the side. */ cm |= quant_band(encode, m, i, Y, N, sbits, spread, B, tf_change, next_lowband2, ec, remaining_bits, LM, NULL, - seed, side, NULL, fill>>B)<<((B>>1)&(1-1)); + seed, side, NULL, fill>>B); } else { /* For a stereo split, the high bits of fill are always zero, so no folding will be done to the side. */ cm = quant_band(encode, m, i, Y, N, sbits, spread, B, tf_change, next_lowband2, ec, remaining_bits, LM, NULL, - seed, side, NULL, fill>>B)<<((B>>1)&(1-1)); + seed, side, NULL, fill>>B); rebalance = sbits - (rebalance-*remaining_bits); if (rebalance > 3<<BITRES && itheta!=16384) mbits += rebalance - (3<<BITRES); |