diff --git a/lib_com/options.h b/lib_com/options.h index 201446dd400413e2b9a5c990669f8f7853812fed..3d10e83cdd62256d473b28559a551b8e9afb84fd 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -113,8 +113,8 @@ #define FIX_1060_USAN_ARRAY_BOUNDS /* FhG: issue 1060: USAN array-bounds errors */ #define NONBE_FIX_SBA_SIGNALING_BITS_B /* FhG: issue 1061: option B: signal sba order additionally in OSBA */ #define NONBE_FIX_1045_ISM_BITRATE_SWITCHING /* Eri: Difference between ROM/File HRTF in ISM bitrate switching */ - #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_fx.c b/lib_dec/core_dec_init_fx.c index d5a1dfeb067483b3dcb6849dd94d8453386bad3e..ea93b21130392f78fb88e3f969faab0a61a0c25e 100644 --- a/lib_dec/core_dec_init_fx.c +++ b/lib_dec/core_dec_init_fx.c @@ -1287,7 +1287,11 @@ void open_decoder_LPD_ivas_fx( st->inv_gamma = GAMMA16k_INV; move16(); } +#ifdef NONBE_FIX_1028_1DB_TCX_LEVEL_DROP + ELSE IF( GT_16( st->element_mode, EVS_MONO ) && GT_32( st->sr_core, INT_FS_16k ) ) +#else ELSE IF( GT_32( st->sr_core, INT_FS_16k ) && EQ_16( st->element_mode, IVAS_CPE_MDCT ) ) +#endif { st->gamma = GAMMA16k; move16();