Commit 529f443a authored by Wim Taymans's avatar Wim Taymans
Browse files

rtpsource: use payload size to estimate bitrate

Use the length of the payload for estimating the receiver bitrate so that it
matches the calculations done on the sender side. Together with the number of
packets one can scale the bitrate with the header overhead of the lower
parent c971d1a9
......@@ -1015,7 +1015,7 @@ rtp_source_process_rtp (RTPSource * src, GstBuffer * buffer,
src->stats.bytes_received += arrival->bytes;
/* for the bitrate estimation */
src->bytes_received += arrival->bytes;
src->bytes_received += arrival->payload_len;
/* the source that sent the packet must be a sender */
src->is_sender = TRUE;
src->validated = TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment