Fixes a bitrate mismatch between sender and receiver.
TEST=trybots BUG= Review URL: https://webrtc-codereview.appspot.com/928014 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3029 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
e034f21d8d
commit
1a2a6dda26
@ -20,8 +20,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
enum { kPacketOverheadBytes = 28 };
|
||||
|
||||
ViEReceiver::ViEReceiver(const int32_t channel_id,
|
||||
VideoCodingModule* module_vcm,
|
||||
RemoteBitrateEstimator* remote_bitrate_estimator)
|
||||
@ -127,10 +125,7 @@ WebRtc_Word32 ViEReceiver::OnReceivedPayloadData(
|
||||
|
||||
// TODO(holmer): Make sure packets reconstructed using FEC are not passed to
|
||||
// the bandwidth estimator.
|
||||
// Add headers, ideally we would like to include for instance
|
||||
// Ethernet header here as well.
|
||||
const int packet_size = payload_size + kPacketOverheadBytes +
|
||||
rtp_header->header.headerLength + rtp_header->header.paddingLength;
|
||||
const int packet_size = payload_size + rtp_header->header.paddingLength;
|
||||
uint32_t compensated_timestamp = rtp_header->header.timestamp +
|
||||
rtp_header->extension.transmissionTimeOffset;
|
||||
remote_bitrate_estimator_->IncomingPacket(rtp_header->header.ssrc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user