diff --git a/apps/decoder.c b/apps/decoder.c index 72008b8287fba284f7aba07d47a6421674bbe470..85a5cf45ea45b43e58d6eb55dd405d80ae7d7093 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 ad53cf3406f47168ffaac735cdbabe24507b5a08..422d3689da513ba069a4e4781bf5d191f096079b 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 ################################## */