From 97feb22d73fb524c26596da0d042354794ccd9bb Mon Sep 17 00:00:00 2001 From: vaclav Date: Wed, 7 May 2025 11:26:55 +0200 Subject: [PATCH] port FIX_960_SYN_OUTPUT --- lib_com/options.h | 1 + lib_com/prot.h | 3 ++- lib_dec/syn_outp.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib_com/options.h b/lib_com/options.h index 2d952edea..c4deab15b 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -188,6 +188,7 @@ #define NONBE_FIX_968_ISM_BRIR_WITH_HEADROTATION_5MS_FIX /* FhG : issue #968: differences between 5ms and 20ms rendering for discrete ISM with BRIR and head rotation*/ #define FIX_969_USAN_IGF_ARITH /* FhG: issue 969: fix USAN error in igf_sce_dec; same issue as #962 */ #define FIX_959_MASA_LINEAR_REND /* VA: issue 959: remove unused calling of ivas_sba_linear_renderer() in MASA rendering */ +#define FIX_960_SYN_OUTPUT /* VA: issue 960: unused function syn_output() is removed */ /* #################### End BASOP porting switches ############################ */ diff --git a/lib_com/prot.h b/lib_com/prot.h index 745028ee1..cbf5ac11d 100644 --- a/lib_com/prot.h +++ b/lib_com/prot.h @@ -4817,13 +4817,14 @@ void dec_acelp_4t64( float code[], /* o : algebraic (fixed) codebook excitation */ const int16_t Opt_AMR_WB /* i : flag indicating AMR-WB IO mode */ ); - +#ifndef FIX_960_SYN_OUTPUT uint32_t syn_output( float *synth, /* i/o: float synthesis signal */ const int16_t output_frame, /* i : output frame length */ int16_t *synth_out /* o : integer 16 bits synthesis signal */ ); +#endif void FEC_exc_estim( Decoder_State *st, /* i/o: Decoder static memory */ const int16_t L_frame, /* i : length of the frame */ diff --git a/lib_dec/syn_outp.c b/lib_dec/syn_outp.c index 68389fa27..b53320885 100644 --- a/lib_dec/syn_outp.c +++ b/lib_dec/syn_outp.c @@ -44,6 +44,7 @@ #include "prot.h" #include "wmc_auto.h" +#ifndef FIX_960_SYN_OUTPUT /*-------------------------------------------------------------------* * syn_output() * @@ -65,7 +66,7 @@ uint32_t syn_output( /* integer conversion */ return mvr2s( synth, synth_out, output_frame ); } - +#endif /*-------------------------------------------------------------------* * AGC_dec() -- GitLab