Skip to content
Snippets Groups Projects
Commit 8259492a authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fixes an integer wrap-around due to an exceedingly large QCONST16

parent c0c0ef67
No related branches found
No related tags found
No related merge requests found
...@@ -890,7 +890,7 @@ static opus_val16 dynalloc_analysis(const opus_val16 *bandLogE, const opus_val16 ...@@ -890,7 +890,7 @@ static opus_val16 dynalloc_analysis(const opus_val16 *bandLogE, const opus_val16
for (i=0;i<nbEBands;i++) for (i=0;i<nbEBands;i++)
offsets[i] = 0; offsets[i] = 0;
/* Dynamic allocation code */ /* Dynamic allocation code */
maxDepth=-QCONST16(32.f, DB_SHIFT); maxDepth=-QCONST16(31.9f, DB_SHIFT);
for (i=0;i<end;i++) for (i=0;i<end;i++)
{ {
/* Noise floor must take into account eMeans, the depth, the width of the bands /* Noise floor must take into account eMeans, the depth, the width of the bands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment