More headroom in fixed-point silk_burg_modified() to avoid an overflow
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 22 Jul 2016 19:14:34 +0000 (15:14 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 22 Jul 2016 19:57:01 +0000 (15:57 -0400)
silk/fixed/burg_modified_FIX.c

index 17d0e09..80edbdf 100644 (file)
@@ -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)