video_coding: Checking/updating seq num for an old packet regardless of size.

Review URL: http://webrtc-codereview.appspot.com/330028

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1318 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@webrtc.org
2012-01-03 20:35:25 +00:00
parent c00f91d62d
commit 77c425b976
4 changed files with 30 additions and 15 deletions

View File

@@ -445,12 +445,10 @@ VCMJitterBuffer::GetFrame(const VCMPacket& packet, VCMEncodedFrame*& frame)
_discardedPackets++;
_numConsecutiveOldPackets++;
}
else
{
// Update last decoded sequence number if packet belongs to a zero
// size frame with a timestamp equal to the last decoded timestamp.
_lastDecodedState.UpdateZeroSizePacket(&packet);
}
// Update last decoded sequence number if the packet arrived late and
// belongs to a frame with a timestamp equal to the last decoded
// timestamp.
_lastDecodedState.UpdateOldPacket(&packet);
if (_numConsecutiveOldPackets > kMaxConsecutiveOldPackets)
{
@@ -1570,7 +1568,7 @@ VCMJitterBuffer::InsertPacket(VCMEncodedFrame* buffer, const VCMPacket& packet)
if (frame != NULL)
{
VCMFrameBufferStateEnum state = frame->GetState();
_lastDecodedState.UpdateZeroSizePacket(&packet);
_lastDecodedState.UpdateOldPacket(&packet);
// Insert packet
// Check for first packet
// High sequence number will be -1 if neither an empty packet nor