Skip to content
Snippets Groups Projects
Commit 5277d2db authored by Jean-Marc Valin's avatar Jean-Marc Valin Committed by Jean-Marc Valin
Browse files

Fixes a divide-by-zero in narrowband mode with small frame size

parent aaedf171
No related branches found
No related tags found
No related merge requests found
......@@ -255,6 +255,8 @@ int folding_decision(const CELTMode *m, celt_norm *X, int *average, int *last_de
N0 = M*m->shortMdctSize;
if (M*(eBands[end]-eBands[end-1]) <= 8)
return 0;
for (c=0;c<C;c++)
{
for (i=0;i<end;i++)
......
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