Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: webrtc/modules/video_coding/frame_object.h

Issue 2937243002: Validate references of frames inserted into FrameBuffer2. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/frame_object.h
diff --git a/webrtc/modules/video_coding/frame_object.h b/webrtc/modules/video_coding/frame_object.h
index 413cc3391036ac7a68e4c6d27466c1eac736cf6b..0b368ed3360db0f5434edc78d9a7cd918cccf582 100644
--- a/webrtc/modules/video_coding/frame_object.h
+++ b/webrtc/modules/video_coding/frame_object.h
@@ -51,6 +51,8 @@ class FrameObject : public webrtc::VCMEncodedFrame {
uint8_t spatial_layer;
uint32_t timestamp;
+ // TODO(philipel): Add simple modify/access functions to prevent adding to
tommi 2017/06/15 15:42:10 nit: adding too
+ // many |references|.
size_t num_references;
uint16_t references[kMaxFrameReferences];
bool inter_layer_predicted;

Powered by Google App Engine
This is Rietveld 408576698