From a6ea525ab629652bb3d3166b0903fe0c1dfb81a9 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Mon, 2 Jun 2025 11:56:42 +0200 Subject: [PATCH] port NON_BE_FIX_1041_USE_OLD_CNG_LSPS_IF_NONSTAB --- lib_com/options.h | 1 + lib_dec/er_dec_tcx_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 73a8f082f..a3d31337b 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -135,6 +135,7 @@ #define FIX_1003_PARAMISM_BINAURAL_RECONFIG_USAN /* FhG: fix for #1003: fix USAN caused by ParamISM reconfig */ #define FIX_1001_ARI_HM_OVERFLOW /* FhG: (no changes needed in BASOP) fix for undef behaviour in in the harmonic TCX model arithmetic coder */ #define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */ +#define NON_BE_FIX_1041_USE_OLD_CNG_LSPS_IF_NONSTAB /* FhG: fix bug in TD MDCT-Stereo concealment */ /* #################### End BASOP porting switches ############################ */ diff --git a/lib_dec/er_dec_tcx_fx.c b/lib_dec/er_dec_tcx_fx.c index 3d0eab815..dfb50cb4e 100644 --- a/lib_dec/er_dec_tcx_fx.c +++ b/lib_dec/er_dec_tcx_fx.c @@ -1744,7 +1744,11 @@ void con_tcx_ivas_fx( alpha_inv = sub( 16384 /*Q.0f in Q14*/, alpha_delayed ); /*Q14*/ +#ifdef NON_BE_FIX_1041_USE_OLD_CNG_LSPS_IF_NONSTAB + E_LPC_a_lsp_conversion( A_local, lsp_local, st->lspold_cng, M ); +#else E_LPC_a_lsp_conversion( A_local, lsp_local, lsp_local, M ); +#endif FOR( i = 0; i < M; i++ ) { -- GitLab