shithub: opus

Download patch

ref: d6643192f7353b2123f18ccd82de83705aa47383
parent: 783ad76766e1f6b6aaca5d6eb415ac8a8269e1f2
author: Felicia Lim <[email protected]>
date: Tue Jan 17 11:23:27 EST 2017

Add FIXED_POINT check if using celt_fir in SILK's LPC analysis filter

Use of celt_fir remains off by default

--- a/silk/LPC_analysis_filter.c
+++ b/silk/LPC_analysis_filter.c
@@ -56,7 +56,7 @@
 )
 {
     opus_int   j;
-#if USE_CELT_FIR
+#if defined(FIXED_POINT) && USE_CELT_FIR
     opus_int16 num[SILK_MAX_ORDER_LPC];
 #else
     int ix;
@@ -68,7 +68,7 @@
     silk_assert( (d & 1) == 0 );
     silk_assert( d <= len );
 
-#if USE_CELT_FIR
+#if defined(FIXED_POINT) && USE_CELT_FIR
     silk_assert( d <= SILK_MAX_ORDER_LPC );
     for ( j = 0; j < d; j++ ) {
         num[ j ] = -B[ j ];