Don't detect a new frame if a previous packet is used in a previous frame.
In this CL: - Removed unused variable |last_seq_num_|. - Fixed bug where a new incomplete frame was detected as a complete frame. - Added fuzzer to video_coding::PacketBuffer. BUG=chromium:677101 Review-Url: https://codereview.webrtc.org/2613833003 Cr-Commit-Position: refs/heads/master@{#16003}
This commit is contained in:
@ -468,5 +468,14 @@ TEST_F(TestPacketBuffer, DontLeakPayloadData) {
|
||||
EXPECT_FALSE(Insert(2 + kMaxSize, kKeyFrame, kFirst, kNotLast, 5, data4));
|
||||
}
|
||||
|
||||
TEST_F(TestPacketBuffer, ContinuousSeqNumDoubleMarkerBit) {
|
||||
Insert(2, kKeyFrame, kNotFirst, kNotLast);
|
||||
Insert(1, kKeyFrame, kFirst, kLast);
|
||||
frames_from_callback_.clear();
|
||||
Insert(3, kKeyFrame, kNotFirst, kLast);
|
||||
|
||||
EXPECT_EQ(0UL, frames_from_callback_.size());
|
||||
}
|
||||
|
||||
} // namespace video_coding
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user