diff --git a/lib_com/options.h b/lib_com/options.h index e9d887b5eb4c8f37d739186371d05aaa9a5e932d..d8428a0810a3860eaff781509a6a48c99dab5982 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 e334f4d0298b6fc9d00f108b3531f59028e0bacf..9931f1048dfd7372bc7d717a495d0735f71cea70 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