VCM:Accounting for bounds when inserting packets. We currently receive indicators to the first and last packets of the frame, but not have any sanity to verify that all packets are indeed within the bounds (when available). This cl attempts to fix that,
BUG= R=marpan@google.com Review URL: https://webrtc-codereview.appspot.com/2077004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4614 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -148,6 +148,8 @@ VCMFrameBuffer::InsertPacket(const VCMPacket& packet,
|
||||
return kSizeError;
|
||||
} else if (retVal == -2) {
|
||||
return kDuplicatePacket;
|
||||
} else if (retVal == -3) {
|
||||
return kOutOfBoundsPacket;
|
||||
}
|
||||
// update length
|
||||
_length = Length() + static_cast<uint32_t>(retVal);
|
||||
|
Reference in New Issue
Block a user