Chromium Code Reviews| Index: content/common/gpu/media/gpu_video_decode_accelerator.cc |
| diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| index 5424a5ff32d801d846662f7fb95b910caf19e7ef..65a3f54228bedc4674e65b091396794ceaeeaa1e 100644 |
| --- a/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| +++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| @@ -509,9 +509,9 @@ void GpuVideoDecodeAccelerator::OnDecode( |
| return; |
| } |
| - media::BitstreamBuffer bitstream_buffer(params.bitstream_buffer_id, |
| - params.buffer_handle, params.size, |
| - params.presentation_timestamp); |
| + media::BitstreamBuffer bitstream_buffer( |
| + params.bitstream_buffer_id, params.buffer_handle, params.size, |
| + checked_cast<off_t>(params.offset), params.presentation_timestamp); |
|
dcheng
2016/01/25 19:09:18
Should this really crash the GPU (I think?) proces
Owen Lin
2016/01/29 05:38:17
Change to returning error.
Besides, I also tried
|
| if (!params.key_id.empty()) { |
| bitstream_buffer.SetDecryptConfig( |
| media::DecryptConfig(params.key_id, params.iv, params.subsamples)); |