mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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 transport.
This commit is contained in:
parent
c971d1a9ab
commit
529f443a61
1 changed files with 1 additions and 1 deletions
|
@ -1015,7 +1015,7 @@ rtp_source_process_rtp (RTPSource * src, GstBuffer * buffer,
|
|||
src->stats.bytes_received += arrival->bytes;
|
||||
src->stats.packets_received++;
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue