ref: 8259492a7db58cd9c24f514546215098765caa26
parent: c0c0ef677d64458e0ef34d3ce8dc05e15f4406cc
author: Jean-Marc Valin <[email protected]>
date: Thu Jul 25 09:52:42 EDT 2013
Fixes an integer wrap-around due to an exceedingly large QCONST16
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -890,7 +890,7 @@
for (i=0;i<nbEBands;i++)
offsets[i] = 0;
/* Dynamic allocation code */
- maxDepth=-QCONST16(32.f, DB_SHIFT);
+ maxDepth=-QCONST16(31.9f, DB_SHIFT);
for (i=0;i<end;i++)
{
/* Noise floor must take into account eMeans, the depth, the width of the bands