Commit 1a1e5374 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_932_fix' into 'main'

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

See merge request !670
parents 04009e67 0a4c68a8
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();
        }