diff --git a/lib_com/options.h b/lib_com/options.h index 72e4fa35d4e2bdf0b03f06db7c6867612da96957..b8869c96e6b02e658ba2e3ccd652a464d0fa67b3 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -165,6 +165,7 @@ #define FIX_FLOAT_1526_DIRAC_MEM_LEAK /* FhG: potential memory leak in DirAC handles in case of format switching */ #define ALIGN_ACELP_CORE /* VA: align ACELP core functions with BASOP */ #define FIX_1532_MSAN_ERR_AMR_FIRST_FRAME_IS_SID /* FhG: fix msan complaint in AMR-WB when first frame is an SID */ +#define FIX_FLOAT_1535_ARI_RES_Q_CLEANUP /* FhG: remove dead code from tcx_ari_res_Q_spec() */ /* #################### End BE switches ################################## */ diff --git a/lib_enc/tcx_utils_enc.c b/lib_enc/tcx_utils_enc.c index 6d7cd854978a56436249a49a5f76cc162b34a905..4a6c46b5cb7efa1e5a4cf3cf9b46a9423dbccdba 100644 --- a/lib_enc/tcx_utils_enc.c +++ b/lib_enc/tcx_utils_enc.c @@ -1106,6 +1106,9 @@ int16_t tcx_ari_res_Q_spec( fac_p = 0.5f - fac_m; num_zeros = 0; +#ifdef FIX_FLOAT_1535_ARI_RES_Q_CLEANUP + assert( x_fac != NULL ); +#else if ( x_fac == NULL ) { for ( i = 0; i < L_frame; ++i ) @@ -1166,6 +1169,7 @@ int16_t tcx_ari_res_Q_spec( return bits; } +#endif for ( i = 0; i < L_frame; ++i ) {