Chromium Code Reviews| Index: content/common/gpu/client/gpu_video_decode_accelerator_host.cc |
| diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc |
| index 621d21077460947feedd6b18d842fb14ee1571c2..11e2a4919f0d48afc2c7fa4359a8a1012dd71b9f 100644 |
| --- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc |
| +++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc |
| @@ -129,7 +129,8 @@ void GpuVideoDecodeAcceleratorHost::Decode( |
| AcceleratedVideoDecoderMsg_Decode_Params params; |
| params.bitstream_buffer_id = bitstream_buffer.id(); |
| params.buffer_handle = handle; |
| - params.size = bitstream_buffer.size(); |
| + params.size = base::checked_cast<uint32>(bitstream_buffer.size()); |
|
Pawel Osciak
2015/12/31 02:05:53
We've just switched to standard integer types. Ple
Owen Lin
2016/01/04 08:54:17
Acknowledged.
|
| + params.offset = base::checked_cast<uint32>(bitstream_buffer.offset()); |
| params.presentation_timestamp = bitstream_buffer.presentation_timestamp(); |
| params.key_id = bitstream_buffer.key_id(); |
| params.iv = bitstream_buffer.iv(); |