Removing an assert for a case that can occur

when corrupt packets are injected into voice engine.
Review URL: https://webrtc-codereview.appspot.com/373004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1518 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
punyabrata@webrtc.org
2012-01-24 00:48:36 +00:00
parent f5cacdce8c
commit 6da8eeb946

View File

@@ -124,10 +124,11 @@ WebRtc_Word32 ReceiverFEC::AddReceivedFECPacket(
timestampOffset += incomingRtpPacket[rtpHeader->header.headerLength+2];
timestampOffset = timestampOffset >> 2;
if(timestampOffset != 0) {
// sanity timestampOffset must be 0
assert(false);
// timestampOffset should be 0, however, this is a valid error case in
// the event of garbage payload.
return -1;
}
blockLength =
(0x03 & incomingRtpPacket[rtpHeader->header.headerLength + 2]) << 8;
blockLength += (incomingRtpPacket[rtpHeader->header.headerLength + 3]);