Clean up old GoPs when the RTP sequence number jump.

Bug: chromium:1065699
Change-Id: I2ed853559858ef82c6eb03b366cd77e8b3b0e799
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/173703
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31102}
This commit is contained in:
philipel
2020-04-17 15:08:35 +02:00
committed by Commit Bot
parent ee0864364d
commit 00032698ac
2 changed files with 9 additions and 3 deletions

View File

@ -308,6 +308,12 @@ TEST_F(TestRtpFrameReferenceFinder, AdvanceSavedKeyframe) {
EXPECT_EQ(6UL, frames_from_callback_.size());
}
TEST_F(TestRtpFrameReferenceFinder, AdvanceSavedKeyframeBigJump) {
InsertVp9Flex(0, 0, true);
InsertVp9Flex(1, 1, true);
reference_finder_->PaddingReceived(32768);
}
TEST_F(TestRtpFrameReferenceFinder, ClearTo) {
uint16_t sn = Rand();