ref: e34c85a0ccd9712f63c48751c44d34db1d4c4941
parent: 2ed5e67a2ea66902cadb2a7a031690019c00a363
author: Jean-Marc Valin <[email protected]>
date: Thu Jul 15 13:57:50 EDT 2010
Using short blocks a bit more often now that we have variable tf resolution
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -274,7 +274,7 @@
}
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 @@
*frame_max = begin[len-overlap];
RESTORE_STACK;
- return ratio > 4;
+ return ratio > 0;
}
/** Apply window and compute the MDCT for all sub-frames and