Index: content/common/gpu/media/video_decode_accelerator_unittest.cc |
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
index f325b40c8fcd317f72648a9fc05fdf9285775246..ad755d4af237c1d45bf4401031349314151efc53 100644 |
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc |
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
@@ -603,7 +603,8 @@ void GLRenderingVDAClient::DecodeNextFragments() { |
base::SharedMemoryHandle dup_handle; |
CHECK(shm.ShareToProcess(base::Process::Current().handle(), &dup_handle)); |
media::BitstreamBuffer bitstream_buffer( |
- next_bitstream_buffer_id_++, dup_handle, next_fragment_size); |
+ next_bitstream_buffer_id_, dup_handle, next_fragment_size); |
+ next_bitstream_buffer_id_ = (next_bitstream_buffer_id_ + 1) & 0x3FFFFFFF; |
Ami GONE FROM CHROMIUM
2013/01/10 23:41:31
lolololol
|
decoder_->Decode(bitstream_buffer); |
++outstanding_decodes_; |
encoded_data_next_pos_to_decode_ = end_pos; |