diff --git a/lib_com/hvq_pvq_bitalloc.c b/lib_com/hvq_pvq_bitalloc.c index 2c9429a32d60738f0dc77d7af942ca046d161b5e..5f98538a84171567814e5f90376780b2e344ca9f 100644 --- a/lib_com/hvq_pvq_bitalloc.c +++ b/lib_com/hvq_pvq_bitalloc.c @@ -80,6 +80,10 @@ int16_t hvq_pvq_bitalloc( int16_t num_sfm; int16_t bit_cost; +#ifdef FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR + *n_sel_bands = 0; +#endif + if ( bwidth == FB ) { num_sfm = SFM_N_HARM_FB; @@ -134,7 +138,9 @@ int16_t hvq_pvq_bitalloc( return 0; } +#ifndef FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR *n_sel_bands = 0; +#endif env_mean = 0; E_max = 0; k_max = k_start; diff --git a/lib_com/options.h b/lib_com/options.h index fc3d5173a82f8f79fefbdca257ef0af5236f60b2..d0855fe972b724f74932f036b402366ef812e5ce 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -172,6 +172,7 @@ #define FIX_2287_MCT_MDCT_STEREO_DATA_MALLOC_SIZE /* FhG: correct allocation size for STEREO_MDCT_DEC_DATA struct */ #define FIX_2271_OOB_INDEXING_IN_PIT_OL2 /* VA: Fix for issue 2271, to silence clang18 */ #define FIX_2273_OOB_INDEXING_IN_PIT_FR4 /* VA: Fix to silence clang on ptr init */ +#define FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR /* Eri: When no PVQ bands are selected in peaq_vq_enc, the number of bands is not initialized. */ /* #################### End BE switches ################################## */