From 1a2a6dda2680440f9adb14d080780dd7cbe22ce5 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Wed, 31 Oct 2012 12:21:13 +0000 Subject: [PATCH] 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 --- webrtc/video_engine/vie_receiver.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/webrtc/video_engine/vie_receiver.cc b/webrtc/video_engine/vie_receiver.cc index a32c8134e..9ab7d7410 100644 --- a/webrtc/video_engine/vie_receiver.cc +++ b/webrtc/video_engine/vie_receiver.cc @@ -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,