Fix a minor, but bitstream-affecting bug
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 11 Sep 2010 12:57:59 +0000 (08:57 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 11 Sep 2010 12:57:59 +0000 (08:57 -0400)
libcelt/bands.c

index 00158b3..396835c 100644 (file)
@@ -710,7 +710,7 @@ static void quant_band(int encode, const CELTMode *m, int i, celt_norm *X, celt_
             next_level = level+1;
 
          quant_band(encode, m, i, X, NULL, N, mbits, spread, B, tf_change, lowband, resynth, ec, remaining_bits, LM, next_lowband_out1, NULL, next_level, seed);
-         quant_band(encode, m, i, Y, NULL, N, sbits, spread, B, tf_change, next_lowband2, resynth, ec, remaining_bits, LM, NULL, NULL, level, seed);
+         quant_band(encode, m, i, Y, NULL, N, sbits, spread, B, tf_change, next_lowband2, resynth, ec, remaining_bits, LM, NULL, NULL, next_level, seed);
       }
 
    } else {