76c5f5cc8a
In the GN build, libchromiumcontent is no longer a distinct library, but merely a container for a set of scripts and patches. Maintaining those patches in a separate repository is tedious and error-prone, so merge them into the main repo. Once this is merged and GN is the default way to build Electron, the libchromiumcontent repository can be archived.
18 lines
927 B
Diff
18 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.
|