Commit 0a4c68a8 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 932: Decoder crash for MC 5.1 at 13.2 kbps FER in ivas_wb_tbe_dec_fx()

[x] Added the missed saturation in ivas_wb_tbe_dec_fx
parent 2b6dc1f3
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1227,7 +1227,11 @@ void ivas_wb_tbe_dec_fx(
            exp = sub( add( exp, 22 ), 30 );
            tmp = div_s( 16384, tmp );
            L_tmp = Isqrt_lc( L_deposit_h( tmp ), &exp ); /* Q(31-exp) */
#ifdef BASOP_NOGLOB
            st_fx->last_wb_bwe_ener_fx = round_fx_sat( L_shl_sat( L_tmp, add( exp, sub( n, 12 ) ) ) ); /*  Q3 */
#else
            st_fx->last_wb_bwe_ener_fx = round_fx( L_shl( L_tmp, add( exp, sub( n, 12 ) ) ) ); /*  Q3 */
#endif
            move16();
        }