diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-19 11:37:21 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-19 11:37:21 -0500 |
commit | f7506b8bf371480eaaf08822ff883509bceb44d7 (patch) | |
tree | 7bf3f7daff48af6cdba5039a17eebd1f130bf42a | |
parent | c7945bfdd6cf565dd751ded001251d67b0560c47 (diff) | |
download | opus-f7506b8bf371480eaaf08822ff883509bceb44d7.tar.gz |
collapse mask cleanup
-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); |