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:
parent
292da24166
commit
567d507707
@ -221,7 +221,12 @@ RTPSenderVideo::SendVideoPacket(const FrameType frameType,
|
|||||||
packetToSend->rtpHeaderLength);
|
packetToSend->rtpHeaderLength);
|
||||||
|
|
||||||
_rtpPacketListFec.pop_front();
|
_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();
|
_mediaPacketListFec.pop_front();
|
||||||
|
}
|
||||||
|
|
||||||
// Send normal packet with RED header
|
// Send normal packet with RED header
|
||||||
int packetSuccess = _rtpSender.SendToNetwork(
|
int packetSuccess = _rtpSender.SendToNetwork(
|
||||||
|
Loading…
Reference in New Issue
Block a user