Fixes a minor folding bug for N=2 bands in stereo
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Wed, 15 Sep 2010 10:57:55 +0000 (06:57 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Wed, 15 Sep 2010 10:57:55 +0000 (06:57 -0400)
libcelt/bands.c

index fca17e6..70e8bcd 100644 (file)
@@ -753,7 +753,7 @@ static void quant_band(int encode, const CELTMode *m, int i, celt_norm *X, celt_
             }
          }
          sign = 2*sign - 1;
-         quant_band(encode, m, i, x2, NULL, N, mbits, spread, B, tf_change, lowband, resynth, ec, remaining_bits, LM, lowband_out, NULL, level+1, seed, gain, lowband_scratch);
+         quant_band(encode, m, i, x2, NULL, N, mbits, spread, B, tf_change, lowband, resynth, ec, remaining_bits, LM, lowband_out, NULL, level, seed, gain, lowband_scratch);
          y2[0] = -sign*x2[1];
          y2[1] = sign*x2[0];
          if (resynth)