From 466f56007ec0f55a58c42972d64a10411dbab5ab Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Fri, 22 Jul 2016 15:14:34 -0400 Subject: More headroom in fixed-point silk_burg_modified() to avoid an overflow --- silk/fixed/burg_modified_FIX.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silk/fixed/burg_modified_FIX.c b/silk/fixed/burg_modified_FIX.c index 17d0e099..80edbdfa 100644 --- a/silk/fixed/burg_modified_FIX.c +++ b/silk/fixed/burg_modified_FIX.c @@ -37,7 +37,7 @@ POSSIBILITY OF SUCH DAMAGE. #define MAX_FRAME_SIZE 384 /* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384 */ #define QA 25 -#define N_BITS_HEAD_ROOM 2 +#define N_BITS_HEAD_ROOM 3 #define MIN_RSHIFTS -16 #define MAX_RSHIFTS (32 - QA) -- cgit v1.2.1