From 825d35aafa5669a64d2d42a2484336faa00064a8 Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Thu, 26 Feb 2026 15:50:25 +0100 Subject: [PATCH] remove dead code from tcx_ari_res_Q_spec() --- lib_com/options.h | 1 + lib_enc/tcx_utils_enc.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index c0cd3fbb39..ccfd8f02a6 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -164,6 +164,7 @@ #define FIX_2235_TD_RENDERER_WORD16 /* Eri: For float: small synch with BASOP, removing unnecessary abs. BASOP: Use Word16 in TD renderer without converting to Word32 */ #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_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 6d7cd85497..4a6c46b5cb 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 ) { -- GitLab