Fixes PLC initialization bug
authorKoen Vos <koen.vos@skype.net>
Sat, 29 Oct 2011 04:03:29 +0000 (00:03 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 29 Oct 2011 04:03:29 +0000 (00:03 -0400)
silk/PLC.c

index 264b725..3821631 100644 (file)
@@ -53,7 +53,7 @@ void silk_PLC_Reset(
     silk_decoder_state                  *psDec              /* I/O Decoder state        */
 )
 {
-    psDec->sPLC.pitchL_Q8 = silk_RSHIFT( psDec->frame_length, 1 );
+    psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 );
     psDec->sPLC.prevGain_Q16[ 0 ] = SILK_FIX_CONST( 1, 16 );
     psDec->sPLC.prevGain_Q16[ 1 ] = SILK_FIX_CONST( 1, 16 );
 }