ref: 1ee6b48c60a2ce31bfbf35573fe77d97c3e55b00
parent: 2f3ae499ff0bec02a12fe6369328948c72f403c4
author: Koen Vos <[email protected]>
date: Fri Oct 28 20:03:29 EDT 2011
Fixes PLC initialization bug
--- a/silk/PLC.c
+++ b/silk/PLC.c
@@ -53,7 +53,7 @@
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 );
}