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

Unified Diff: ppapi/c/dev/pp_video_dev.h

Issue 11826064: Enforce non-negative BitstreamBuffer id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid wrapping signed integers. Created 7 years, 11 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: ppapi/c/dev/pp_video_dev.h
diff --git a/ppapi/c/dev/pp_video_dev.h b/ppapi/c/dev/pp_video_dev.h
index 340b14f29647ebb09d25a1351512c25b75c096ad..023b50552b6df8f597813a4fb1700a7280c11a44 100644
--- a/ppapi/c/dev/pp_video_dev.h
+++ b/ppapi/c/dev/pp_video_dev.h
@@ -61,7 +61,8 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecoder_Profile, 4);
*/
struct PP_VideoBitstreamBuffer_Dev {
/**
- * Client-specified identifier for the bitstream buffer.
+ * Client-specified identifier for the bitstream buffer. Valid values are
+ * non-negative.
*/
int32_t id;
/**
@@ -83,7 +84,7 @@ struct PP_PictureBuffer_Dev {
/**
* Client-specified id for the picture buffer. By using this value client can
* keep track of the buffers it has assigned to the video decoder and how they
- * are passed back to it.
+ * are passed back to it. Valid values are non-negative.
*/
int32_t id;
/**

Powered by Google App Engine
This is Rietveld 408576698