Commit 2001321d authored by multrus's avatar multrus
Browse files

fix fscaleFB initialization

parent 68636297
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1366,10 +1366,10 @@ static void init_tcx_ivas_fx(
    Word16 i;
    Word16 fscaleFB;

    IF( EQ_16( st->element_mode, EVS_MONO ) )
    {
    fscaleFB = div_l( L_shl( st->input_Fs, LD_FSCALE_DENOM + 1 ), 12800 );

    IF( EQ_16( st->element_mode, EVS_MONO ) )
    {
        init_TCX_config( st->hTcxCfg, st->L_frame, st->fscale, hTcxEnc->L_frameTCX, fscaleFB );

        st->hTcxCfg->tcx_mdct_window_length_old = st->hTcxCfg->tcx_mdct_window_length;
@@ -1405,7 +1405,7 @@ static void init_tcx_ivas_fx(
#ifdef HARMONIZE_2567_init_functions
        init_tcx_cfg_fx( st->hTcxCfg, total_brate, st->sr_core, st->input_Fs, st->L_frame, st->bwidth, hTcxEnc->L_frameTCX,
                         st->fscale, st->preemph_fac, st->tcxonly, st->rf_mode, st->igf,
                         st->hIGFEnc != NULL ? st->hIGFEnc->infoStopFrequency : 0, st->element_mode, st->ini_frame, MCT_flag, 0 );
                         st->hIGFEnc != NULL ? st->hIGFEnc->infoStopFrequency : 0, st->element_mode, st->ini_frame, MCT_flag, fscaleFB );
#else
        init_tcx_cfg_ivas_fx( st->hTcxCfg, total_brate, st->sr_core, st->input_Fs, st->L_frame, st->bwidth, hTcxEnc->L_frameTCX,
                              st->fscale, st->preemph_fac, st->tcxonly, st->rf_mode, st->igf,