From 8e0bbddb042f50e3c90b5b22849a8cb3c8063aa4 Mon Sep 17 00:00:00 2001 From: Eleni Fotopoulou Date: Thu, 26 Mar 2026 17:24:27 +0100 Subject: [PATCH] remove obsolete code (float issue 1546) --- lib_com/options.h | 1 + lib_enc/swb_bwe_enc_fx.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 374e387de..d3cf6c18b 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -89,6 +89,7 @@ #define FIX_2480_HARM_TONALMDCT /* FhG: basop issue 2480: Harmonize TonalMDCTConceal_Detect_fx() and TonalMDCTConceal_Detect_ivas_fx() */ #define FIX_2479_HARM_PITCH_GAIN /* FhG: basop issue 2479: Harmonize tcx_ltp_pitch_search_*(), tcx_ltp_find_gain_*fx() */ #define HARMONIZE_2481_EXTEND_SHRINK /* FhG: basop issue 2481: Harmonize extend_frm_*fx() and shrink_frm_*fx() */ +#define FIX_FLOAT_ISSUE_1546_DEAD_CODE /* FhG: remove dead code reported in the issue*/ /* #################### End BE switches ################################## */ diff --git a/lib_enc/swb_bwe_enc_fx.c b/lib_enc/swb_bwe_enc_fx.c index 3c099f6aa..b776ca92c 100644 --- a/lib_enc/swb_bwe_enc_fx.c +++ b/lib_enc/swb_bwe_enc_fx.c @@ -217,7 +217,9 @@ void swb_bwe_enc_fx( Word16 Qenc_synth_hf, Qenc_synth; FD_BWE_ENC_HANDLE hBWE_FD = st_fx->hBWE_FD; +#ifndef FIX_FLOAT_ISSUE_1546_DEAD_CODE TD_BWE_ENC_HANDLE hBWE_TD = st_fx->hBWE_TD; +#endif IF( st_fx->element_mode == EVS_MONO ) { @@ -268,7 +270,9 @@ void swb_bwe_enc_fx( IF( EQ_16( st_fx->element_mode, IVAS_CPE_DFT ) ) { Copy( old_input_12k8_fx + L_INP_MEM - Sample_Delay_LP, hBWE_FD->old_input_lp_fx, Sample_Delay_LP ); +#ifndef FIX_FLOAT_ISSUE_1546_DEAD_CODE Copy( hBWE_TD->old_speech_shb_fx + L_LOOK_16k + L_SUBFR16k - Sample_Delay_HP, new_input_hp_fx, Sample_Delay_HP ); +#endif } Copy( hBWE_FD->old_input_lp_fx, old_input_lp_fx, Sample_Delay_LP ); Copy( old_input_12k8_fx + L_INP_MEM, &old_input_lp_fx[Sample_Delay_LP], L_FRAME - Sample_Delay_LP ); @@ -296,7 +300,9 @@ void swb_bwe_enc_fx( IF( EQ_16( st_fx->element_mode, IVAS_CPE_DFT ) ) { Copy( old_input_16k_fx + L_INP_MEM - Sample_Delay_LP, hBWE_FD->old_input_lp_fx, Sample_Delay_LP ); +#ifndef FIX_FLOAT_ISSUE_1546_DEAD_CODE Copy( hBWE_TD->old_speech_shb_fx + L_LOOK_16k + L_SUBFR16k - Sample_Delay_HP, new_input_hp_fx, Sample_Delay_HP ); +#endif } Copy( hBWE_FD->old_input_lp_fx, old_input_lp_fx, Sample_Delay_LP ); -- GitLab