From e12471a2310d5a7f5c69ea596c9875b8a057e82b Mon Sep 17 00:00:00 2001 From: vaclav Date: Mon, 16 Jun 2025 18:32:48 +0200 Subject: [PATCH] port NONBE_FIX_1028_1DB_TCX_LEVEL_DROP --- lib_com/options.h | 1 + lib_dec/core_dec_init.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 94f061010..628d2cf05 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -210,6 +210,7 @@ #define FIX_998_UNUSED_FUNCTION /* FhG: issue 998: delete unused funtion ivas_dirac_dec_get_response_split_order */ #define NONBE_FIX_1014_1015_1016_OSBA_JBM_STEREO /* FhG: issues #1014, #1015, #1016: fix tc buffer info update in the discrete ism renderer */ #define NONBE_FIX_987_PARAMC_BINAURAL_REVERB_RENDERING /* FhG: issue 987: solution b: downmix HOA3 to stereo a input for the reverberator */ +#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 af1080de0..0f6d2d891 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; } -- GitLab