19 lines
927 B
Diff
19 lines
927 B
Diff
![]() |
a157e080931581b5f6f3f9bc580a137e6062e45b
|
||
|
diff --git a/modules/video_coding/rtp_frame_reference_finder.cc b/modules/video_coding/rtp_frame_reference_finder.cc
|
||
|
index be05e56070..09b2593531 100644
|
||
|
--- a/modules/video_coding/rtp_frame_reference_finder.cc
|
||
|
+++ b/modules/video_coding/rtp_frame_reference_finder.cc
|
||
|
@@ -533,6 +533,12 @@ bool RtpFrameReferenceFinder::MissingRequiredFrameVp9(uint16_t picture_id,
|
||
|
size_t gof_idx = diff % info.gof->num_frames_in_gof;
|
||
|
size_t temporal_idx = info.gof->temporal_idx[gof_idx];
|
||
|
|
||
|
+ if (temporal_idx >= kMaxTemporalLayers) {
|
||
|
+ RTC_LOG(LS_WARNING) << "At most " << kMaxTemporalLayers << " temporal "
|
||
|
+ << "layers are supported.";
|
||
|
+ return true;
|
||
|
+ }
|
||
|
+
|
||
|
// For every reference this frame has, check if there is a frame missing in
|
||
|
// the interval (|ref_pid|, |picture_id|) in any of the lower temporal
|
||
|
// layers. If so, we are missing a required frame.
|