From cb98488b8cfbfa8916a55c30e018289f3f128bce Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Sun, 20 Oct 2024 08:26:52 +0530 Subject: [PATCH] Fix for 3GPP issue 938: Decoder crash for MC 7.1+4 at 64-96 kbps with LFE content when rendered to 7.1+4 --- lib_rend/ivas_dirac_output_synthesis_dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_rend/ivas_dirac_output_synthesis_dec.c b/lib_rend/ivas_dirac_output_synthesis_dec.c index e71bb5341..4c93bcdc1 100644 --- a/lib_rend/ivas_dirac_output_synthesis_dec.c +++ b/lib_rend/ivas_dirac_output_synthesis_dec.c @@ -5733,10 +5733,11 @@ void ivas_lfe_synth_with_filters_fx( } ELSE { + Flag overFlow; transportGain_fx = BASOP_Util_Divide3232_Scale( hMasaLfeSynth->targetEneTransSmooth_fx, /*EPSILON + */ hMasaLfeSynth->transportEneSmooth_fx, &transportGain_fx_exp ); transportGain_fx_exp = add( sub( hMasaLfeSynth->transportEneSmooth_q, hMasaLfeSynth->targetEneTransSmooth_q ), transportGain_fx_exp ); transportGain_fx = Sqrt16( transportGain_fx, &transportGain_fx_exp ); - transportGain_fx = shl_r( transportGain_fx, transportGain_fx_exp ); // Q15 + transportGain_fx = shl_ro( transportGain_fx, transportGain_fx_exp, &overFlow ); // Q15 } j = 0; move16(); -- GitLab