From 4a8c1f11b106f448df174a8232817c238675d367 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Wed, 13 Oct 2010 18:03:50 -0400 Subject: [PATCH] Making it possible to have two transients in a row for longer frames --- libcelt/celt.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libcelt/celt.c b/libcelt/celt.c index 58bfeb5a..2e002f1d 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -224,8 +224,8 @@ static int transient_analysis(const celt_word32 * restrict in, int len, int C, tmp[i] = 0; begin[0] = 0; - for (i=0;i360+overlap) + { + *frame_max = 0; + for (i=len-360-overlap;i 0; }