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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 11826064: Enforce non-negative BitstreamBuffer id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Documented the wrapping at 30 bits. 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
« no previous file with comments | « content/common/gpu/media/video_decode_accelerator_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index ae51189af890b75d976813e125a8c0f64c8ee209..b7f2632da21e383520a97a02444c93a79ab0b65d 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -218,8 +218,8 @@ class MEDIA_EXPORT GpuVideoDecoder
// picture_buffer_id and the frame wrapping the corresponding Picture, for
// frames that have been decoded but haven't been requested by a Read() yet.
std::list<scoped_refptr<VideoFrame> > ready_video_frames_;
- int64 next_picture_buffer_id_;
- int64 next_bitstream_buffer_id_;
+ int32 next_picture_buffer_id_;
+ int32 next_bitstream_buffer_id_;
// Indicates decoding error occurred.
bool error_occured_;
« no previous file with comments | « content/common/gpu/media/video_decode_accelerator_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698