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

Fix for LTV-Crash (Multi-channel 7_1_4 at 96 kbps, 48kHz in, 48kHz out, 5_1 out, random FER at 5%)

[x] Increased precision for lfeGain in the function ivas_lfe_synth_with_filters_fx
parent bbfc4049
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5543,7 +5543,7 @@ void ivas_lfe_synth_with_filters_fx(
        }
        ELSE
        {
            lfeGain_fx = BASOP_Util_Divide3232_Scale( hMasaLfeSynth->targetEneLfeSmooth_fx, /*EPSILON + */ hMasaLfeSynth->transportEneSmooth_fx, &lfeGain_fx_exp );
            lfeGain_fx = extract_h( BASOP_Util_Divide3232_Scale_cadence( hMasaLfeSynth->targetEneLfeSmooth_fx, L_add( EPSILON_FX, hMasaLfeSynth->transportEneSmooth_fx ), &lfeGain_fx_exp ) );
            lfeGain_fx_exp = add( sub( hMasaLfeSynth->transportEneSmooth_q, hMasaLfeSynth->targetEneLfeSmooth_q ), lfeGain_fx_exp );
            lfeGain_fx = Sqrt16( lfeGain_fx, &lfeGain_fx_exp );
            lfeGain_fx = shl_r( lfeGain_fx, lfeGain_fx_exp ); // Q15