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

Fix for 3GPP issue 885: Crashes in stereo BASOP decoder with error pattern...

Fix for 3GPP issue 885: Crashes in stereo BASOP decoder with error pattern from complexity measurement
parent 9c871d5f
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1863,7 +1863,7 @@ void ivas_swb_tbe_dec_fx(
        FOR( i = 0; i < L_SHB_LAHEAD; i++ )
        {
            L_tmp = Mult_32_16( Lscale, shaped_shb_excitation_fx[i] );             /* Q_bwe_exc + (31-exp) - 15 */
            shaped_shb_excitation_fx[i] = round_fx( L_shl( L_tmp, exp ) ); /* Q_bwe_exc */
            shaped_shb_excitation_fx[i] = round_fx_sat( L_shl_sat( L_tmp, exp ) ); /* Q_bwe_exc */
            move16();
        }
        IF( exp < 0 )
@@ -1884,7 +1884,7 @@ void ivas_swb_tbe_dec_fx(
            temp_fx = sub( 32767 /*1.0f Q15*/, temp_fx );
            Lscale = L_add( Mult_32_16( Lscale, temp_fx ), L_tmp1 );
            L_tmp = Mult_32_16( Lscale, shaped_shb_excitation_fx[i] );             /* Q_bwe_exc + (31-exp) - 15 */
            shaped_shb_excitation_fx[i] = round_fx( L_shl( L_tmp, exp ) ); /* Q_bwe_exc */
            shaped_shb_excitation_fx[i] = round_fx_sat( L_shl_sat( L_tmp, exp ) ); /* Q_bwe_exc */
            move16();
        }
    }