ref: 4d2d9fc9e6feb7060589664af5855c9ef762bc89
parent: 54fb7e5683b9f7fd4a54608afd7fb4f1dc30e546
author: Jean-Marc Valin <[email protected]>
date: Fri Oct 15 10:17:13 EDT 2010
Transient detection fix for the case where a transient occurs during the overlap
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -260,7 +260,7 @@
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;