diff --git a/silk/PLC.c b/silk/PLC.c index 264b72581d67470c848ca83dde83d9fe141c3835..3821631939f5b35b3172a9664c962357fe7a5498 100644 --- a/silk/PLC.c +++ b/silk/PLC.c @@ -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 ); }