Make sure FEC packets aren't passed to the VCM with non-zero length.
BUG=902 Review URL: https://webrtc-codereview.appspot.com/843007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2840 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -1178,6 +1178,12 @@ VideoCodingModuleImpl::IncomingPacket(const WebRtc_UWord8* incomingPayload,
|
||||
WebRtc_UWord32 payloadLength,
|
||||
const WebRtcRTPHeader& rtpInfo)
|
||||
{
|
||||
if (incomingPayload == NULL) {
|
||||
// The jitter buffer doesn't handle non-zero payload lengths for packets
|
||||
// without payload.
|
||||
// TODO(holmer): We should fix this in the jitter buffer.
|
||||
payloadLength = 0;
|
||||
}
|
||||
const VCMPacket packet(incomingPayload, payloadLength, rtpInfo);
|
||||
WebRtc_Word32 ret;
|
||||
if (_dualReceiver.State() != kPassive)
|
||||
|
@ -137,7 +137,6 @@ WebRtc_Word32 ViEReceiver::OnReceivedPayloadData(
|
||||
packet_size,
|
||||
TickTime::MillisecondTimestamp(),
|
||||
compensated_timestamp);
|
||||
|
||||
if (vcm_->IncomingPacket(payload_data, payload_size, *rtp_header) != 0) {
|
||||
// Check this...
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user