diff --git a/lib_com/options.h b/lib_com/options.h index 324618a0da7a8fd9b8945d9b1dc784aa7cb3061e..134e2c9565f38601b6c29aae6c620c4d5f892196 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -169,6 +169,7 @@ /* any switch which is non-be wrt selection floating point code */ /* all switches in this category should start with "NONBE_" */ +#define NON_BE_FIX_1041_USE_OLD_CNG_LSPS_IF_NONSTAB /* FhG: fix bug in TD MDCT-Stereo concealment */ #define NONBE_FIX_1075 /* FhG: fix segfault for bitrate switching + BINAURAL_ROOM_REVERB output in MC */ #define NON_BE_FIX_EVS_USAN_ERR_IN_WAVEADJUST /* FhG: address issue 1037 */ #define NON_BE_1055_RESET_LP_MEMORIES /* VA: issue 1055: Correctly reset LP filter MA and AR memories in bitrate switching */ diff --git a/lib_dec/er_dec_tcx.c b/lib_dec/er_dec_tcx.c index 1aaed8c41996692d270f85c128066ac91a758a5d..d7ece99b1deadc244a43d68a96a0cdb058daf768 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++ ) {