From 131e79285dec4ba2e4a1c72abb7a746cf6316a59 Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Wed, 1 Apr 2026 09:24:41 +0300 Subject: [PATCH] Fix BASOP issue 2496 by correcting assingment. --- lib_com/options.h | 1 + lib_rend/ivas_dirac_dec_binaural_functions_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 7976d55ed..311b8e9ac 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_2496_OMASA_OBJ_EDIT_WRONG_ASSIGN /* Nokia: BASOP 2496: Fix wrong assignment in OMASA object edit code */ /* ##################### End NON-BE switches ########################### */ diff --git a/lib_rend/ivas_dirac_dec_binaural_functions_fx.c b/lib_rend/ivas_dirac_dec_binaural_functions_fx.c index fca856c60..de0877bf7 100644 --- a/lib_rend/ivas_dirac_dec_binaural_functions_fx.c +++ b/lib_rend/ivas_dirac_dec_binaural_functions_fx.c @@ -5956,7 +5956,11 @@ void ivas_omasa_preProcessStereoTransportsForEditedObjects_fx( ELSE { newRatios[0] = L_shr( newRatios[0], 6 ); // Q = 30 + 9 + 1 - 16 = 24 +#ifdef FIX_BASOP_2496_OMASA_OBJ_EDIT_WRONG_ASSIGN + newRatios[1] = L_shr( newRatios[1], 6 ); +#else newRatios[1] = L_shr( newRatios[0], 6 ); +#endif move32(); move32(); } -- GitLab