From 58e366a1cb4a1c454cfd94926303ee58d8ba3449 Mon Sep 17 00:00:00 2001 From: vaclav Date: Thu, 19 Mar 2026 17:09:26 +0100 Subject: [PATCH] FIX_1543_MID_LSF_BITS --- lib_com/options.h | 1 + lib_enc/acelp_core_enc_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 95acf0977..85f669806 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -97,6 +97,7 @@ #define FIX_BASOP_2451_HQ_FEC_SELECTOR /* Eri: Resolve basop issue 2451, wrong condition on env_stab_plc_fx */ #define FIX_2398_PRECISSION_ORIENTATION_TRACKING /* FhG: use refinement of Sqrt32 within certain functions*/ +#define FIX_1543_MID_LSF_BITS /* VA: float issue 1543: Resolve "MSAN: use-of-uninitialized-value in lib_enc/lsf_enc.c:262:5 for EVS encoder" */ /* ##################### End NON-BE switches ########################### */ diff --git a/lib_enc/acelp_core_enc_fx.c b/lib_enc/acelp_core_enc_fx.c index 904577880..b74c92599 100644 --- a/lib_enc/acelp_core_enc_fx.c +++ b/lib_enc/acelp_core_enc_fx.c @@ -553,6 +553,10 @@ ivas_error acelp_core_enc_fx( move16(); uc_two_stage_flag = 0; move16(); +#ifdef FIX_1543_MID_LSF_BITS + st->acelp_cfg.mid_lsf_bits = -1; + move16(); +#endif test(); IF( !nelp_mode && !ppp_mode ) -- GitLab