diff --git a/lib_com/options.h b/lib_com/options.h index 8bf694322df0dc5d683401d41c6dd66e145fbd6a..66b72cfdf9c045e6b2ee80db00a1e999c533ef44 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -167,6 +167,7 @@ #define FIX_1038_OFFSET_TO_NULL_PTR_IN_EVS_TCX_BFI /* FhG: move setting of pointers for parameter decoding so they are skipped in lost frames when they are not needed */ #define NONBE_FIX_1056_ISM_RATE_SWITCH /* FhG: Fix #1056: fix TC buffer udpate on a ISM rate switch */ #define NONBE_FIX_1075 /* FhG: fix segfault for bitrate switching + BINAURAL_ROOM_REVERB output in MC */ +#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 37465bc294ad33a91ad7a5f3ced6dfbe86d80d57..c210cd29834a9c1abee1d778c356d8f1172939f8 100644 --- a/lib_dec/er_dec_tcx_fx.c +++ b/lib_dec/er_dec_tcx_fx.c @@ -1766,7 +1766,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++ ) {