Include the media packet FEC headers in the video bitrate.
BUG= TEST= Review URL: http://webrtc-codereview.appspot.com/328014 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1296 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
39670f6aa6
commit
f6c6b1c5b5
@ -226,10 +226,6 @@ RTPSenderVideo::SendVideoPacket(const FrameType frameType,
|
|||||||
RtpPacket* packetToSend =
|
RtpPacket* packetToSend =
|
||||||
static_cast<RtpPacket*>(item->GetItem());
|
static_cast<RtpPacket*>(item->GetItem());
|
||||||
|
|
||||||
item = _mediaPacketListFec.First();
|
|
||||||
ForwardErrorCorrection::Packet* mediaPacket =
|
|
||||||
static_cast<ForwardErrorCorrection::Packet*>(item->GetItem());
|
|
||||||
|
|
||||||
// Copy RTP header
|
// Copy RTP header
|
||||||
memcpy(newDataBuffer, packetToSend->pkt->data,
|
memcpy(newDataBuffer, packetToSend->pkt->data,
|
||||||
packetToSend->rtpHeaderLength);
|
packetToSend->rtpHeaderLength);
|
||||||
@ -267,11 +263,8 @@ RTPSenderVideo::SendVideoPacket(const FrameType frameType,
|
|||||||
|
|
||||||
if (packetSuccess == 0)
|
if (packetSuccess == 0)
|
||||||
{
|
{
|
||||||
videoSent += mediaPacket->length;
|
videoSent += packetToSend->pkt->length +
|
||||||
fecOverheadSent += (packetToSend->pkt->length -
|
REDForFECHeaderLength;
|
||||||
mediaPacket->length +
|
|
||||||
packetToSend->rtpHeaderLength +
|
|
||||||
REDForFECHeaderLength);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
delete packetToSend->pkt;
|
delete packetToSend->pkt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user