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

Reset st->Q_syn_factor in HQ_CORE mode.

parent 46bd7a90
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ void con_tcx_fx(
    {
        /* apply pre-emphasis to the signal */
#ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE
        mem = shl( synth[( -( ( ( shr( L_frame, 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )], st->Q_syn_factor ); /*Q0*/
        mem = shl_sat( synth[( -( ( ( shr( L_frame, 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )], st->Q_syn_factor ); /*Q0*/
#else
        mem = synth[( -( ( ( ( L_frame / 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )]; /*Q0*/
#endif
@@ -239,7 +239,7 @@ void con_tcx_fx(
    {
        /* apply pre-emphasis to the signal */
#ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE
        mem = shl( synth[( -L_frame - 1 )], st->Q_syn_factor ); /*Q0*/
        mem = shl_sat( synth[( -L_frame - 1 )], st->Q_syn_factor ); /*Q0*/
#else
        mem = synth[( -L_frame - 1 )];                                                    /*Q0*/
#endif
+4 −0
Original line number Diff line number Diff line
@@ -625,6 +625,10 @@ ivas_error ivas_core_dec_fx(
            move16();
            Q_synth = 0;
            move16();
#ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE
            st->Q_syn_factor = 0;
            move16();
#endif

            ivas_hq_core_dec_fx( st, synth_16_fx[n], &Q_synth, output_frame, NORMAL_HQ_CORE, core_switching_flag[n], output_16_fx[n], &Q_output );