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

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

parent cdbc01c9
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 );