Fixes a bug when number of media packets in a frame is larger than maximum allowed for the generateFEC.

Review URL: https://webrtc-codereview.appspot.com/391003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1673 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
marpan@webrtc.org 2012-02-10 18:56:14 +00:00
parent 292da24166
commit 567d507707

View File

@ -221,7 +221,12 @@ RTPSenderVideo::SendVideoPacket(const FrameType frameType,
packetToSend->rtpHeaderLength);
_rtpPacketListFec.pop_front();
// Check if _mediaPacketListFec is non-empty.
// This list may be smaller than rtpPacketList, if the frame
// has more than kMaxMediaPackets.
if (!_mediaPacketListFec.empty()) {
_mediaPacketListFec.pop_front();
}
// Send normal packet with RED header
int packetSuccess = _rtpSender.SendToNetwork(