From 0f934bf4e432397b204feb5f95f182e59da28c35 Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Mon, 15 Jun 2026 11:34:52 +0300 Subject: [PATCH] Potential partial fix for float issue 1565 --- lib_com/ivas_qmetadata_com.c | 6 ++++++ lib_com/options.h | 1 + 2 files changed, 7 insertions(+) diff --git a/lib_com/ivas_qmetadata_com.c b/lib_com/ivas_qmetadata_com.c index b30743b54..efa54d16a 100644 --- a/lib_com/ivas_qmetadata_com.c +++ b/lib_com/ivas_qmetadata_com.c @@ -444,6 +444,12 @@ void update_bits_next_block( q_direction->band_data[j].bits_sph_idx[k] -= 1; diff--; } +#ifdef FIX_FLOAT_1565_UPDATE_BITS_INCREMENT + if ( q_direction->band_data[j].bits_sph_idx[k] == 0 ) + { + k++; + } +#endif } } *p_diff = diff; diff --git a/lib_com/options.h b/lib_com/options.h index 8c46419b8..4d4f76c0e 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -172,6 +172,7 @@ #define FIX_1576_LCLD_CRASH_DIFFERENT_CODEC_ISAR_FRAME_SIZE /* Dolby: float issue 1576: fix for crash in LCLD mode when codec frame size is less than isar frame size */ #define FIX_BASOP_2612_RESET_DECIM_MEM /* FhG: BASOP #2612: reset (zero) the 16k resampler memory of the secondary channel on DFT->TD stereo switch (otherwise -> fx overshoot) */ #define FIX_FLOAT_1600_OMASA_WRONG_RENDER_PATH /* Nokia: float issue 1600: fix initialization condition of stereo type detection for OMASA */ +#define FIX_FLOAT_1565_UPDATE_BITS_INCREMENT /* Nokia: float issue 1565: potential partial fix by incrementing counter in else path */ /* ##################### End NON-BE switches ########################### */ -- GitLab