Transient detection fix for the case where a transient occurs during the overlap
This commit is contained in:
parent
54fb7e5683
commit
4d2d9fc9e6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue