diff --git a/lib_dec/gaus_dec_fx.c b/lib_dec/gaus_dec_fx.c index a7806e274b81e466b06aebc029f9c57a15aa41a6..5221e14f4f914d7ef26359bce198e0390c8e4801 100644 --- a/lib_dec/gaus_dec_fx.c +++ b/lib_dec/gaus_dec_fx.c @@ -65,7 +65,7 @@ void gaus_dec_fx( L_tmp = Dot_product12( code, code, L_SUBFR, &exp ); exp = sub( exp, 18 /*24*/ + 6 ); /* exp: -18 (code in Q9), -6 (/L_SUBFR) */ L_tmp = Isqrt_lc( L_tmp, &exp ); - *inv_gain_inov = extract_h( L_shl( L_tmp, sub( exp, 3 ) ) ); /* inv_gain_inov in Q12 */ + *inv_gain_inov = extract_h( L_shl_sat( L_tmp, sub( exp, 3 ) ) ); /* inv_gain_inov in Q12 */ move16(); nb_bits = st_fx->acelp_cfg.gains_mode[shr( i_subfr, 6 )];