ref: 02ad779f5f0f09b1e194a8d9cb7c7ce844873663
parent: 045e47cede795030a94d741bf4254666c85fc608
author: Jean-Marc Valin <[email protected]>
date: Thu Jan 27 04:53:09 EST 2011
Fixes a fixed-point overflow in anti-collapse
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -258,7 +258,7 @@
else
r = 0;
if (LM==3)
- r = MULT16_16_Q14(QCONST16(1.41421356f,14), r);
+ r = MULT16_16_Q14(23170, MIN32(23169, r));
r = SHR16(MIN16(thresh, r),1);
r = SHR32(MULT16_16_Q15(sqrt_1, r),shift);
#else