From e34c85a0ccd9712f63c48751c44d34db1d4c4941 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 15 Jul 2010 17:57:50 -0400 Subject: [PATCH] Using short blocks a bit more often now that we have variable tf resolution --- libcelt/celt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcelt/celt.c b/libcelt/celt.c index b8d720fd..07969a03 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -274,7 +274,7 @@ static int transient_analysis(const celt_word32 * restrict in, int len, int C, } n = -1; - threshold = MULT16_32_Q15(QCONST16(.2f,15),begin[len]); + threshold = MULT16_32_Q15(QCONST16(.4f,15),begin[len]); /* If the following condition isn't met, there's just no way we'll have a transient*/ if (*frame_max < threshold) @@ -307,7 +307,7 @@ static int transient_analysis(const celt_word32 * restrict in, int len, int C, *frame_max = begin[len-overlap]; RESTORE_STACK; - return ratio > 4; + return ratio > 0; } /** Apply window and compute the MDCT for all sub-frames and