rtpsource: use payload size to estimate bitrate
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 2 Mar 2010 12:21:24 +0000 (13:21 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 8 Mar 2010 16:48:04 +0000 (17:48 +0100)
commit529f443a617a0ef78d8a55e0ee511dca9b092ad4
treefdad756e7aaceabe5248a644cd0f9665fa4105c8
parentc971d1a9abed161db0f9c619f34592620f6c8621
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.
gst/rtpmanager/rtpsource.c