From 09745b63df7f9657d4ad1a8a903ec5b7d3f191cd Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Wed, 1 Apr 2026 09:41:39 +0300 Subject: [PATCH] Fix BASOP issue 2497 by correcting subframe index --- lib_com/options.h | 1 + lib_rend/ivas_dirac_output_synthesis_dec_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 7976d55ed..c21635cce 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -103,6 +103,7 @@ #define FIX_1547_ISMDTX_HANDLE /* VA: float issue 1547: fix use of 'hISMDTX' handle */ #define FIX_1540_EXPOSE_PT_IN_RTP_HEADER_API /* Expose Payload Type setting in RTP Header */ #define FIX_BASOP_2491_MDCT_JBM_CLICK /* FhG: BASOP #2491: Fix Q_synth after TCX concealment (using ACELP concealment) */ +#define FIX_BASOP_2497_MCMASA_LFE_WRONG_SF_INDEX /* Nokia: BASOP 2497: Fix wrong subframe index in McMASA LFE synth. */ /* ##################### End NON-BE switches ########################### */ diff --git a/lib_rend/ivas_dirac_output_synthesis_dec_fx.c b/lib_rend/ivas_dirac_output_synthesis_dec_fx.c index f2a225de3..1ee45f1c8 100644 --- a/lib_rend/ivas_dirac_output_synthesis_dec_fx.c +++ b/lib_rend/ivas_dirac_output_synthesis_dec_fx.c @@ -3454,7 +3454,11 @@ void ivas_lfe_synth_with_filters_fx( slotSize = shr_r( output_frame, 4 ); // output_frame / CLDFB_NO_COL_MAX FOR( slot_index = 0; slot_index < CLDFB_NO_COL_MAX; slot_index++ ) { +#ifdef FIX_BASOP_2497_MCMASA_LFE_WRONG_SF_INDEX + subframe_index = shr( slot_index, 2 ); +#else subframe_index = shr( slot_index, 4 ); +#endif mrange[0] = i_mult( slot_index, slotSize ); move16(); -- GitLab