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

Updated max function usage with L_max

parent 9259962e
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -201,12 +201,12 @@ void decod_unvoiced_ivas_fx(
            IF(EQ_16(st_fx->L_frame, L_FRAME))
            {
                Rescale_exc(st_fx->hMusicPF->dct_post_old_exc_fx, &exc_fx[i_subfr_fx], (bwe_exc_fx != NULL) ? &bwe_exc_fx[i_subfr_fx * HIBND_ACB_L_FAC] : NULL, st_fx->hGSCDec->last_exc_dct_in_fx,
                    L_SUBFR, L_SUBFR* HIBND_ACB_L_FAC, max(gain_code2_fx, gain_code_fx), &(st_fx->Q_exc), st_fx->Q_subfr, exc2_fx, i_subfr_fx, UNVOICED);
                    L_SUBFR, L_SUBFR* HIBND_ACB_L_FAC, L_max(gain_code2_fx, gain_code_fx), &(st_fx->Q_exc), st_fx->Q_subfr, exc2_fx, i_subfr_fx, UNVOICED);
            }
            ELSE
            {
                Rescale_exc(st_fx->hMusicPF->dct_post_old_exc_fx, &exc_fx[i_subfr_fx],  (bwe_exc_fx != NULL) ? &bwe_exc_fx[i_subfr_fx * 2] : NULL, st_fx->hGSCDec->last_exc_dct_in_fx,
                L_SUBFR, L_SUBFR * 2, max(gain_code2_fx, gain_code_fx), &(st_fx->Q_exc),  st_fx->Q_subfr, exc2_fx, i_subfr_fx, UNVOICED);
                L_SUBFR, L_SUBFR * 2, L_max(gain_code2_fx, gain_code_fx), &(st_fx->Q_exc),  st_fx->Q_subfr, exc2_fx, i_subfr_fx, UNVOICED);
            }

            for (int i = 0; i < L_SUBFR; i++)