shithub: opus

Download patch

ref: 5b9113010d3ec9b8dd4be420f72e5bf76e9a0a5d
parent: ed44e78caf9c472de690dcf72888f6bf1e445c87
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri Jul 22 11:14:34 EDT 2016

More headroom in fixed-point silk_burg_modified() to avoid an overflow

--- a/silk/fixed/burg_modified_FIX.c
+++ b/silk/fixed/burg_modified_FIX.c
@@ -37,7 +37,7 @@
 #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)