From 2a40a505f9a38140a8dc16f78e6676353820c2b4 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Fri, 21 Mar 2025 15:41:44 +0100 Subject: [PATCH] Add NONBE_1296_TDREND_ITD_OUT_OF_BOUNDS_ACCESS to address issue 1296 --- lib_com/options.h | 1 + lib_rend/ivas_objectRenderer_sfx.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 84ce770c97..9c51fe439b 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -174,6 +174,7 @@ #define NONBE_1244_FIX_SWB_BWE_MEMORY /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */ #define NONBE_FIX_1180_HQMDCT_PHECU_LT_MUTING /* Ericsson: issue 1180, corrected long term mute loop attnuation after 200ms in PhECU-PLC */ #define NONBE_1289_STEREO_SW_TO_MONO /* VA: issue 1289: Fix glitch when stereo signal is decoded to mono n TD->DFT switching */ +#define NONBE_1296_TDREND_ITD_OUT_OF_BOUNDS_ACCESS /* Eri: issue 1296: ITD resampling can occasionally read out of bounds, especially when the requested subframes are short (1.25 ms). Seen for headtracking+JBM. */ /* ##################### End NON-BE switches ########################### */ diff --git a/lib_rend/ivas_objectRenderer_sfx.c b/lib_rend/ivas_objectRenderer_sfx.c index 8414394bae..2d09fd49a7 100644 --- a/lib_rend/ivas_objectRenderer_sfx.c +++ b/lib_rend/ivas_objectRenderer_sfx.c @@ -216,7 +216,9 @@ static void sincResample( p_forward++; p_backward--; } +#ifndef NONBE_1296_TDREND_ITD_OUT_OF_BOUNDS_ACCESS tmp += ( *p_forward ) * ( *p_sinc_forward ); /* Integer index always rounded down --> 4 steps backward, 5 steps forward */ +#endif output[i] = tmp; -- GitLab