diff --git a/lib_com/options.h b/lib_com/options.h index 7a488c673d01cc009cfa9866aed1ada548c4da83..8a41dab35497b6281caaced4db3ccf52a52b8cf6 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -99,6 +99,7 @@ #define FIX_2424_REMOVE_GAUSS_L2_ENC /* VA: basop issue 2424: Remove duplicated code in gauss_L2_ivas_fx() */ #define FIX_MDCT_STEREO_ENC_STACK /* VA: basop issue 2428: Move IGF temporary buffers out of the highest stack */ #define HARMONIZE_TBE3 /* VA: basop issue 2399: Remove duplicated code: TBE, step 3 */ +#define FIX_2459_USAN_AMR_SIDSTART /* FhG: basop issue 2459: fix msan complaint */ /* #################### End BE switches ################################## */ diff --git a/lib_dec/hf_synth_fx.c b/lib_dec/hf_synth_fx.c index 7b1124d5805bff94df9efcd8ac3759b4dac18c68..99656ace09ca89ebba8e2d85c6c5b33e3e4265d1 100644 --- a/lib_dec/hf_synth_fx.c +++ b/lib_dec/hf_synth_fx.c @@ -994,6 +994,14 @@ void hf_synth_amr_wb_fx( move16(); /* qdct */ pt1++; } +#ifdef FIX_2459_USAN_AMR_SIDSTART + + /* initialize to fix MSAN complaint - array is never actually accessed in this case */ + FOR( i = 0; i < NB_SUBFR; i++ ) + { + HF_corr_gain[i] = 32767; /* one in Q15 */ + } +#endif } q_tmp = Exp16Array( L_FRAME16k, dct_hb );