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..5d73fdac33af39b98e9f843583d86f24600f6af6 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 to |
tommi
2017/06/15 15:42:10
nit: adding too
stefan-webrtc
2017/06/15 15:47:09
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) |