diff --git a/lib_com/options.h b/lib_com/options.h index 861cf052ec5c980a12516af0fe3648d169054add..8aed6074e103e328b2bf3d6b0a1cc25aaf399184 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -197,6 +197,7 @@ #define NONBE_FIX_1045_ISM_BITRATE_SWITCHING /* Eri: Difference between ROM/File HRTF in ISM bitrate switching */ #define NONBE_FIX_984_OMASA_EXT_OUTPUT /* Nok: issue 1497 - porting OMASA EXT MR */ #define NONBE_FIX_1065_ISM_MD_HANDLE /* VA: issue 1065: Allocate only the necessary number of ISM MD decoder handles. */ +#define NONBE_FIX_1028_1DB_TCX_LEVEL_DROP /* VA: Harmonize the logic setting LP weighting factor between TCX encoder and TCX decoder */ /* #################### End BASOP porting switches ############################ */ diff --git a/lib_dec/core_dec_init.c b/lib_dec/core_dec_init.c index af1080de03b7658596faf11e7648dc03577e059d..0f6d2d891266ecbca4f2df0e8da343bc24399e08 100644 --- a/lib_dec/core_dec_init.c +++ b/lib_dec/core_dec_init.c @@ -150,7 +150,11 @@ void open_decoder_LPD( { st->gamma = GAMMA16k; } +#ifdef NONBE_FIX_1028_1DB_TCX_LEVEL_DROP + else if ( st->element_mode > EVS_MONO && st->sr_core > INT_FS_16k ) +#else else if ( st->sr_core > INT_FS_16k && st->element_mode == IVAS_CPE_MDCT ) +#endif { st->gamma = GAMMA16k; }