Commit 6c109e4b authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Remove redundant if-condition in con_tcx_fx()

parent e1a6df1a
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -941,6 +941,9 @@ void con_tcx_fx(
    }
    ELSE
    {
#ifdef FIX_BASOP_2491_MDCT_JBM_CLICK
        tmp_deemph = shl_sat( tmp_deemph, Q_syn ); /*Q_syn*/
#else
        IF( NE_16( st->element_mode, EVS_MONO ) ) // to keep evs bit-exactness
        {
            if ( GT_16( sub( Q_syn, st->Q_syn_factor ), scf ) )
@@ -953,6 +956,7 @@ void con_tcx_fx(
        {
            tmp_deemph = shl_sat( tmp_deemph, Q_syn ); /*Q_syn*/
        }
#endif
        st->Q_syn_factor = 0;
        move16();
        st->Q_syn = Q_syn;
+1 −1
Original line number Diff line number Diff line
@@ -1306,7 +1306,7 @@ typedef struct Decoder_State
    Word16 Q_syn;
    Word16 Q_syn2;
    Word16 Q_syn_cng;
    Word16 Q_syn_factor; // This q_factor is used to avoid using fix Q0 for synth[] at the output of con_tcx_ivas_fx() and ivas_core_dec_fx(). For con_tcx_ivas_fx, it is used for two consecutive TCX concealment processes and It cannot be greater than 0.
    Word16 Q_syn_factor; // This q_factor is used to avoid using fix Q0 for synth[] at the output of con_tcx_fx() and ivas_core_dec_fx(). For con_tcx_fx, it is used for two consecutive TCX concealment processes and It cannot be greater than 0.
    Word16 prev_Q_syn;
    Word16 prev_Q_bwe_exc;