From 551698318ada9177f34bcb5fe5d6675f36737474 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Thu, 22 Feb 2024 10:51:22 +0530 Subject: [PATCH] Fix for crash issue reported as Issue_674 --- lib_com/cldfb.c | 3 --- lib_dec/core_switching_dec.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib_com/cldfb.c b/lib_com/cldfb.c index 54c286be1..1ba4be6b6 100644 --- a/lib_com/cldfb.c +++ b/lib_com/cldfb.c @@ -1748,9 +1748,6 @@ void resampleCldfb_ivas( /*low complexity-resampling only stored previous samples that are needed for next frame modulation */ lerp_flt( hs->cldfb_state, hs->cldfb_state, timeOffset, timeOffsetold ); -#ifdef IVAS_FLOAT_FIXED - L_lerp_fx_q11( hs->cldfb_state_fx, hs->cldfb_state_fx, timeOffset, timeOffsetold ); -#endif return; } diff --git a/lib_dec/core_switching_dec.c b/lib_dec/core_switching_dec.c index f45e1acb3..f957a1fe8 100644 --- a/lib_dec/core_switching_dec.c +++ b/lib_dec/core_switching_dec.c @@ -1357,11 +1357,11 @@ static void core_switch_lb_upsamp_fx( /* check if the CLDFB works on the right sample rate */ IF( NE_16( ( st->cldfbAna->no_channels * st->cldfbAna->no_col ), st->L_frame ) ) { - resampleCldfb_ivas( st->cldfbAna, L_mult0( st->L_frame, FRAMES_PER_SEC ) ); + resampleCldfb_ivas_fx( st->cldfbAna, L_mult0( st->L_frame, FRAMES_PER_SEC ) ); IF( st->cldfbBPF != NULL && LE_16( st->L_frame, L_FRAME16k ) ) { - resampleCldfb_ivas( st->cldfbBPF, L_mult0( st->L_frame, FRAMES_PER_SEC ) ); + resampleCldfb_ivas_fx( st->cldfbBPF, L_mult0( st->L_frame, FRAMES_PER_SEC ) ); } IF( GT_16( st->ini_frame, 0 ) ) -- GitLab