diff --git a/lib_dec/FEC_pitch_estim_fx.c b/lib_dec/FEC_pitch_estim_fx.c index d12c4b30ac591fc9af7de282ee0ebbe9cfbf5a53..36fec6a4a69dfa380edb2b5d2f7d450a285f6276 100644 --- a/lib_dec/FEC_pitch_estim_fx.c +++ b/lib_dec/FEC_pitch_estim_fx.c @@ -57,7 +57,7 @@ void FEC_pitch_estim_fx( tmp = mult_r( pitch_buf[1], 22938 ); /*Q6( 0.7f * pitch_buf[1] 0.7 in Q15)*/ tmp1 = shl( tmp, 1 ); /*Q6 (1.4f * pitch_buf[1])*/ tmp2 = round_fx( L_shl( Mpy_32_16_1( old_pitch_buf[2 * NB_SUBFR - 1], 22938 ), 6 ) ); /*Q6 (0.7f * old_pitch_buf[2*NB_SUBFR-1])*/ - tmp3 = shl( tmp2, 1 ); /*Q6 (1.4f * old_pitch_buf[2*NB_SUBFR-1])*/ + tmp3 = shl_sat( tmp2, 1 ); /*Q6 (1.4f * old_pitch_buf[2*NB_SUBFR-1])*/ tmp16k1 = round_fx( L_shl( Mpy_32_16_1( old_pitch_buf[2 * NB_SUBFR16k - 1], 22938 ), 6 ) ); /*Q6 0.7f * old_pitch_buf[2*NB_SUBFR16k-1]*/ #ifdef BASOP_NOGLOB