Fixed fixed-point overflow for 2.5 ms frames.
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 16 Oct 2010 04:01:27 +0000 (00:01 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 16 Oct 2010 04:01:27 +0000 (00:01 -0400)
libcelt/bands.c

index 24d7a93..29a1ba7 100644 (file)
@@ -542,7 +542,7 @@ static void quant_band(int encode, const CELTMode *m, int i, celt_norm *X, celt_
          x = Y;
       }
       if (lowband_out)
-         lowband_out[0] = X[0];
+         lowband_out[0] = SHR16(X[0],4);
       return;
    }