Commit 34dad453 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

corrected bwe_exc_fx[] scaling in the decoder

parent e46fc474
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@
#define FIX_2009_HIGH_NOISE_FLOOR_FOR_FX_DEC                 /* FhG: Corrected the q_input in the input of generate_masking_noise_dirac_ivas_fx() */
#define FIX_ISSUE_2013_MDCT_STEREO_DTX_DISCONTINUITIES       /* Eri/FhG: Issue 2013 fix for dtx discontinuities */
#define FIX_ISSUE_2013_MDCT_STEREO_FER_DISCONTINUITIES       /* Eri/FhG: Issue 2013 fix for FER discontinuities */

#define FIX_2010_HF_ENERGY_LOSS                              /* FhG: corrected bwe_exc_fx[] scaling in the decoder */
/* #################### Start BASOP porting switches ############################ */

#define NONBE_1244_FIX_SWB_BWE_MEMORY                   /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */
+6 −1
Original line number Diff line number Diff line
@@ -357,7 +357,12 @@ ivas_error decod_gen_voic_fx(
        gain_buf[idx] = gain_pit_fx; // Q14
        move16();
    }

#ifdef FIX_2010_HF_ENERGY_LOSS
    IF( LT_32( MIN_BRATE_AVQ_EXC, st_fx->core_brate ) )
    {
        Scale_sig( bwe_exc_fx, shl( st_fx->L_frame, 1 ), 1 );
    }
#endif
    /* FEC fast recovery */

    IF( do_WI_fx )