Commit c021fbe3 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Limit st->Q_syn_factor to nonpositive values in HQ_CORE mode.

parent 5f99d2e4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -644,7 +644,7 @@ ivas_error ivas_core_dec_fx(

            Copy_Scale_sig_16_32_DEPREC( output_16_fx[n], output_32_fx[n], L_FRAME48k, sub( Q11, Q_output ) ); // Q11
#ifdef FIX_1947_DEC_HIGH_MLD_FOR_STEREO2MONO
            st->Q_syn_factor = s_min( Q_synth, Q_output );
            st->Q_syn_factor = s_min( 0, s_min( Q_synth, Q_output ) );
            Scale_sig( synth_16_fx[n], output_frame, sub( st->Q_syn_factor, Q_synth ) ); // st->Q_syn_factor
            Scale_sig( output_16_fx[n], L_FRAME48k, sub( st->Q_syn_factor, Q_output ) ); // st->Q_syn_factor
#else