Padding is now used to check for continuity in the packet sequence.

BUG=webrtc:5514

Review-Url: https://codereview.webrtc.org/2051453002
Cr-Commit-Position: refs/heads/master@{#13383}
This commit is contained in:
philipel
2016-07-05 05:04:46 -07:00
committed by Commit bot
parent 9a123aa0c3
commit 9b2ce6be09
4 changed files with 182 additions and 37 deletions

View File

@ -66,6 +66,12 @@ bool PacketBuffer::InsertPacket(const VCMPacket& packet) {
if (AheadOf(seq_num, last_seq_num_))
last_seq_num_ = seq_num;
// If this is a padding or FEC packet, don't insert it.
if (packet.sizeBytes == 0) {
reference_finder_.PaddingReceived(packet.seqNum);
return true;
}
sequence_buffer_[index].frame_begin = packet.isFirstPacket;
sequence_buffer_[index].frame_end = packet.markerBit;
sequence_buffer_[index].seq_num = packet.seqNum;