Unwrap TL0 pic index to avoid having to work with a wrapped number.
This is to avoid clearing the |gof_info_| map when there are jumps in the tl0 pic index. Bug: chromium:855211 Change-Id: I762557070d65b3c535cb9a49498975bcd9c2c485 Reviewed-on: https://webrtc-review.googlesource.com/86943 Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23872}
This commit is contained in:
@ -1331,6 +1331,16 @@ TEST_F(TestRtpFrameReferenceFinder, Vp9GofPidJump) {
|
||||
InsertVp9Gof(sn + 1, sn + 1, false, pid + 1000, 0, 0, 1);
|
||||
}
|
||||
|
||||
TEST_F(TestRtpFrameReferenceFinder, Vp9GofTl0Jump) {
|
||||
uint16_t pid = Rand();
|
||||
uint16_t sn = Rand();
|
||||
GofInfoVP9 ss;
|
||||
ss.SetGofInfoVP9(kTemporalStructureMode3);
|
||||
|
||||
InsertVp9Gof(sn, sn, true, pid + 0, 0, 0, 125, true, &ss);
|
||||
InsertVp9Gof(sn + 1, sn + 1, false, pid + 1, 0, 0, 0, false, &ss);
|
||||
}
|
||||
|
||||
TEST_F(TestRtpFrameReferenceFinder, Vp9GofTidTooHigh) {
|
||||
// Same as RtpFrameReferenceFinder::kMaxTemporalLayers.
|
||||
const int kMaxTemporalLayers = 5;
|
||||
|
Reference in New Issue
Block a user