From 573e072f74d99b002634d7817ba93f88ec16a283 Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Thu, 14 Aug 2025 18:00:22 +0200 Subject: [PATCH] fix wrong pointer increment in ivas_dirac_dec_render_sf_fx() for object rendering --- lib_com/options.h | 1 + lib_dec/ivas_dirac_dec_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 596d127d3..6857f4c95 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -88,6 +88,7 @@ #define ISSUE_1866_replace_overflow_libdec /* FhG: BE - Replace BASOPoverflow operators all over the lib_dec module if Overflow result is not used */ #define NONBE_FIX_TCX5_INTERLEAVING_FOR_FS_IN_UNEQUAL_FS_OUT /* FhG: apply correct TCX5 grouping/interleaving when input_fs != output_fs */ +#define FIX_1917_DIRAC_RENDER_PTR_INCR /* FhG: fix wrong pointer increment in ivas_dirac_dec_render_sf_fx() for object rendering */ #define FIX_1824 #define FIX_1822 diff --git a/lib_dec/ivas_dirac_dec_fx.c b/lib_dec/ivas_dirac_dec_fx.c index 2516d4ebd..1bc3d42f9 100644 --- a/lib_dec/ivas_dirac_dec_fx.c +++ b/lib_dec/ivas_dirac_dec_fx.c @@ -3796,7 +3796,11 @@ void ivas_dirac_dec_render_sf_fx( tc_re_fx++; Cldfb_ImagBuffer_fx[j2][k][l] = Madd_32_32( Cldfb_ImagBuffer_fx[j2][k][l], g_fx, *tc_im_fx ); move32(); +#ifdef FIX_1917_DIRAC_RENDER_PTR_INCR + tc_im_fx++; +#else tc_re_fx++; +#endif } w1_fx += hSpatParamRendCom->num_freq_bands; } -- GitLab