Transient detection fix for the case where a transient occurs during the overlap

This commit is contained in:
Jean-Marc Valin 2010-10-15 14:17:13 -04:00
parent 54fb7e5683
commit 4d2d9fc9e6

View file

@ -260,7 +260,7 @@ static int transient_analysis(const celt_word32 * restrict in, int len, int C,
if (len>360+overlap)
{
*frame_max = 0;
for (i=len-360-overlap;i<len;i++)
for (i=len-360-overlap;i<len-overlap;i++)
*frame_max = MAX32(*frame_max, ABS32(tmp[i]));
}
RESTORE_STACK;