diff --git a/lib_com/options.h b/lib_com/options.h index 0c4477f3524e554bfd8619cbbe14663cc483a767..7d8fc7a793a7ebc35a945f5d9f6e300e89a32095 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -169,7 +169,7 @@ #define NONBE_FIX_1220_OMASA_JBM_EXT_USAN /* Nokia: fix issue 1220 OMASA EXT JBM USAN, also fix similar cases of free to avoid future problems */ #define NONBE_FIX_1376_MDCT_CONCEALMENT /* FhG: fix concealment artifact in MDCT Stereo with DTX, in case transition frame gets lost */ #define NONBE_1377_REND_DIRATT_CONF /* Eri: Issue 1377: Error in directivity attenuation configuration for both IVAS_dec and IVAS_rend */ - +#define FIX_ISSUE_2008_MISSING_CODE_FROM_PORTING /* FhG: Issue 2008: Code deleted while porting float-main MR !1504 (BASOP issue 1565)*/ /* #################### End BASOP porting switches ############################ */ /* clang-format on */ diff --git a/lib_enc/ivas_stereo_dft_enc_itd.c b/lib_enc/ivas_stereo_dft_enc_itd.c index ba3db0f5c10c649ffdf45014d64438adeefd0e3b..7c24cd545f42e837e4e5eaa1fc04e68bb6a63ba8 100644 --- a/lib_enc/ivas_stereo_dft_enc_itd.c +++ b/lib_enc/ivas_stereo_dft_enc_itd.c @@ -729,6 +729,11 @@ void stereo_dft_enc_compute_itd( grand_dot_prod_img += xcorr[2 * i + 1]; xcorr_abs[i] = sqrtf( xcorr[2 * i] * xcorr[2 * i] + xcorr[2 * i + 1] * xcorr[2 * i + 1] ); +#ifdef FIX_ISSUE_2008_MISSING_CODE_FROM_PORTING + prod_LL = prod_L; + prod_RR = prod_R; +#endif + if ( j == SFM_PROD_GRP || i == NFFT_mid - 1 ) { prod_L = max( FLT_MIN, prod_L );