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

Fix for 3GPP issue 938: Decoder crash for MC 7.1+4 at 64-96 kbps with LFE...

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
parent cd24a21c
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();