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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user