From 3140b8646fe46d1f3a4b6dff24b5c5bb79bc6ef3 Mon Sep 17 00:00:00 2001 From: "Malenovsky, Vladimir" Date: Tue, 10 Feb 2026 08:45:13 +0100 Subject: [PATCH] Fix incorrect setting for render frame size and codec frame size in SR RTP --- apps/decoder.c | 4 ++++ lib_com/options.h | 1 + 2 files changed, 5 insertions(+) diff --git a/apps/decoder.c b/apps/decoder.c index 72008b8287..85a5cf45ea 100644 --- a/apps/decoder.c +++ b/apps/decoder.c @@ -3770,7 +3770,11 @@ static ivas_error decodeVoIP( } else if ( decodedGoodFrame ) { +#ifdef FIX_RENDER_FRAME_SIZE_IN_RTP_SR + srInfo.bitrateKbps = splitRendBits->bits_written * 1000 / splitRendBits->isar_frame_size_ms; +#else srInfo.bitrateKbps = splitRendBits->bits_written * 1000 / splitRendBits->codec_frame_size_ms; +#endif srInfo.codec = ( splitRendBits->codec == ISAR_SPLIT_REND_CODEC_LC3PLUS ) ? IVAS_SR_TRANSPORT_LC3PLUS : IVAS_SR_TRANSPORT_LCLD; srInfo.codecFrameSizeMs = (uint32_t) splitRendBits->codec_frame_size_ms; diff --git a/lib_com/options.h b/lib_com/options.h index ad53cf3406..422d3689da 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -163,6 +163,7 @@ #define TMP_1342_WORKAROUND_DEC_FLUSH_BROKEN_IN_SR /* FhG: Temporary workaround for incorrect implementation of decoder flush with split rendering */ #define NONBE_1122_KEEP_EVS_MODE_UNCHANGED /* FhG: Disables fix for issue 1122 in EVS mode to keep BE tests green. This switch should be removed once the 1122 fix is added to EVS via a CR. */ #define FIX_2392_MSAN_DESTROY_DEC /* VA: basop issue 2392: fix MSAN in ivas_destroy_dec_fx() */ +#define FIX_RENDER_FRAME_SIZE_IN_RTP_SR /* Dolby: Fix incorrect setting for render frame size and codec frame size in SR RTP */ /* #################### End BE switches ################################## */ -- GitLab