ref: 6044907c820f40adc6be8c3d342d49c9956cf233
parent: e51a3f33cf5a387eea3dff09d0ca04cf54d59e49
author: Jean-Marc Valin <[email protected]>
date: Thu Feb 7 10:31:30 EST 2013
Fixes a SILK fixed-point encoder issue reported by Cliff Parris <[email protected]>
--- a/silk/fixed/burg_modified_FIX.c
+++ b/silk/fixed/burg_modified_FIX.c
@@ -263,7 +263,7 @@
tmp1 = silk_SMLAWW( tmp1, Atmp1, Atmp1 ); /* Q16 */
A_Q16[ k ] = -Atmp1;
}
- *res_nrg = silk_SMLAWW( nrg, silk_SMMUL( FIND_LPC_COND_FAC, C0 ), -tmp1 ); /* Q( -rshifts ) */
+ *res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/* Q( -rshifts ) */
*res_nrg_Q = -rshifts;
}
}