Commit b9b256e5 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '912-decoder-crash-for-low-level-signal' into 'main'

Fix for 3GPP issue 912: decoder crash for low-level signal

Closes #912

See merge request !633
parents cdbc01c9 b20dab1e
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -969,7 +969,11 @@ void ivas_wb_tbe_dec_fx(
        FOR( i = 0; i < L_SHB_LAHEAD / 4 - 1; i++ )
        {
            L_tmp = Mult_32_16( Lscale, shaped_wb_excitation[i] ); /* Q(16-exp+Q_bwe_exc_ext) */
#ifdef BASOP_NOGLOB
            shaped_wb_excitation[i] = round_fx_sat( L_shl_sat( L_tmp, exp ) ); /* Q_bwe_exc_ext */
#else
            shaped_wb_excitation[i] = round_fx( L_shl( L_tmp, exp ) );            /* Q_bwe_exc_ext */
#endif
            move16();
        }
        Lscale = root_a_fx( Lscale, sub( 31, exp ), &exp );