From e22c97bd540bcbc6f4086c44858fc5db1f540c98 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 17 Jan 2024 13:41:41 +0100 Subject: [PATCH] transmit: packet count - multiply always simplification --- src/transmit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transmit.cpp b/src/transmit.cpp index 3d7b9d9ba..e83c50961 100644 --- a/src/transmit.cpp +++ b/src/transmit.cpp @@ -685,9 +685,9 @@ tx_send_base(struct tx *tx, struct video_frame *frame, struct rtp *rtp_session, } vector packet_sizes = get_packet_sizes(frame, substream, tx->mtu - hdrs_len); - long packet_count = packet_sizes.size() * (tx->fec_scheme == FEC_MULT ? tx->mult_count : 1); - - long packet_rate = get_packet_rate(tx, frame, substream, packet_count); + const long packet_count = (long) packet_sizes.size() * tx->mult_count; + const long packet_rate = + get_packet_rate(tx, frame, (int) substream, packet_count); // initialize header array with values (except offset which is different among // different packts)