From bf8cb40d4c5712cdd9247eea91178f661db6d61a Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Fri, 28 Jun 2024 14:08:03 +0530 Subject: [PATCH] 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 --- lib_rend/ivas_dirac_output_synthesis_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_rend/ivas_dirac_output_synthesis_dec.c b/lib_rend/ivas_dirac_output_synthesis_dec.c index f999f8919..cc57f1a64 100644 --- a/lib_rend/ivas_dirac_output_synthesis_dec.c +++ b/lib_rend/ivas_dirac_output_synthesis_dec.c @@ -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 -- GitLab