From 93f75475a3c85977c33fa230fd2c4db6b1d99faf Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Mon, 5 Jun 2023 17:04:20 +0200 Subject: [PATCH] fix for issue 570 - TCX LPC parameter write --- lib_com/options.h | 1 + lib_enc/ivas_tcx_core_enc.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index e9d887b5eb..d8428a0810 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -240,6 +240,7 @@ #define ENHANCED_STEREO_DMX /* Orange : Contribution 48 - Enhanced stereo downmix. */ #define BINAURAL_AUDIO_CMDLINE +#define FIX_570_TCX_LPC_WRITE /* FhG: fix issue 570: LPC bitstream writer in TCX */ /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ diff --git a/lib_enc/ivas_tcx_core_enc.c b/lib_enc/ivas_tcx_core_enc.c index e334f4d029..9931f1048d 100644 --- a/lib_enc/ivas_tcx_core_enc.c +++ b/lib_enc/ivas_tcx_core_enc.c @@ -392,10 +392,14 @@ void stereo_tcx_core_enc( * Write LPC parameters *--------------------------------------------------------------------------------*/ +#ifndef FIX_570_TCX_LPC_WRITE n = st->coder_type; /* IVAS_fmToDo: hack to keep bit-exactness -> TBV */ st->coder_type = INACTIVE; +#endif writeLPCparam( st, hBstr, param_lpc, bits_param_lpc, no_param_lpc, &total_nbbits ); +#ifndef FIX_570_TCX_LPC_WRITE st->coder_type = n; +#endif assert( total_nbbits == ( nbits_lpc[0] + nbits_lpc[1] ) ); #ifdef DEBUG_MODE_TCX -- GitLab