From 9aed2e108169099ce6c9955f749f53ca8d048c8a Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Tue, 27 Feb 2024 14:04:28 +0530 Subject: [PATCH] Fix for crash observed due to excitation for SWB TBE being NULL --- lib_dec/ivas_td_low_rate_dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib_dec/ivas_td_low_rate_dec.c b/lib_dec/ivas_td_low_rate_dec.c index 0c07774dd..8c1314a8f 100644 --- a/lib_dec/ivas_td_low_rate_dec.c +++ b/lib_dec/ivas_td_low_rate_dec.c @@ -215,7 +215,9 @@ void tdm_low_rate_dec( fixedToFloat_arr(voice_factors_fx, voice_factors, Q15, 5); fixedToFloat_arr(exc_fx, exc, 0, L_FRAME); fixedToFloat_arr(exc2_fx, exc2 , 0, L_FRAME); - fixedToFloat_arr(bwe_exc_fx, bwe_exc, 0, L_FRAME32k); + if (bwe_exc) { + fixedToFloat_arr(bwe_exc_fx, bwe_exc, 0, L_FRAME32k); + } /*hGSCDec fix2float*/ st->hGSCDec->seed_tcx = st->hGSCDec->seed_tcx_fx; -- GitLab