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

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

Issue 2937243002: Validate references of frames inserted into FrameBuffer2. (Closed)
Patch Set: to --> too 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
« no previous file with comments | « webrtc/modules/video_coding/frame_buffer2_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fa0a2c1d3d59859243e65144ae24437f5b86db6c 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 too
+ // many |references|.
size_t num_references;
uint16_t references[kMaxFrameReferences];
bool inter_layer_predicted;
« no previous file with comments | « webrtc/modules/video_coding/frame_buffer2_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698