From 4bf645e2522aa81cb891f4d7c994c351bf3b3389 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Mon, 2 Jun 2025 11:42:23 +0200 Subject: [PATCH] port NON_BE_FIX_1041_USE_OLD_CNG_LSPS_IF_NONSTAB --- lib_com/options.h | 1 + lib_dec/er_dec_tcx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index eeecc2ef8..19bb1a494 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -210,6 +210,7 @@ #define FIX_1001_ARI_HM_OVERFLOW /* FhG: 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 NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS /* Nokia: fix USAN error caused by non-setting of correctly the number of MASA directions in DTX */ +#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.c b/lib_dec/er_dec_tcx.c index ab69fe810..0e0f3f469 100644 --- a/lib_dec/er_dec_tcx.c +++ b/lib_dec/er_dec_tcx.c @@ -567,7 +567,11 @@ void con_tcx( alpha_inv = 1.0f - alpha_delayed; +#ifdef NON_BE_FIX_1041_USE_OLD_CNG_LSPS_IF_NONSTAB + a2lsp_stab( A_local, lsp_local, st->lspold_cng ); +#else a2lsp_stab( A_local, lsp_local, lsp_local ); +#endif for ( i = 0; i < M; i++ ) { -- GitLab