Fixes a SILK fixed-point encoder issue reported by Cliff Parris <cliff@espico.com>
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 7 Feb 2013 20:31:30 +0000 (15:31 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 7 Feb 2013 20:31:30 +0000 (15:31 -0500)
silk/fixed/burg_modified_FIX.c

index 26a66b1..c729ef8 100644 (file)
@@ -263,7 +263,7 @@ void silk_burg_modified(
             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;
     }   
 }