Index: webrtc/modules/video_coding/frame_buffer2.h |
diff --git a/webrtc/modules/video_coding/frame_buffer2.h b/webrtc/modules/video_coding/frame_buffer2.h |
index 6ce3b4be57f6b865ffdf18aa35357d974b3d2300..ffeb2aa7cafb9063d1e600e7900b5f874a1297f8 100644 |
--- a/webrtc/modules/video_coding/frame_buffer2.h |
+++ b/webrtc/modules/video_coding/frame_buffer2.h |
@@ -97,6 +97,8 @@ class FrameBuffer { |
// Which other frames that have direct unfulfilled dependencies |
// on this frame. |
+ // TODO(philipel): Add simple modify/access functions to prevent adding too |
+ // many |dependent_frames|. |
FrameKey dependent_frames[kMaxNumDependentFrames]; |
size_t num_dependent_frames = 0; |
@@ -120,6 +122,9 @@ class FrameBuffer { |
using FrameMap = std::map<FrameKey, FrameInfo>; |
+ // Check that the references of |frame| are valid. |
+ bool ValidReferences(const FrameObject& frame) const; |
+ |
// Updates the minimal and maximal playout delays |
// depending on the frame. |
void UpdatePlayoutDelays(const FrameObject& frame) |