| Index: content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc b/content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc
|
| index 11ff91a9d6cf18986406eb57660aaa79fdfb4514..4b7a1b9a1f29501252460a966d3d245469310d0b 100644
|
| --- a/content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc
|
| @@ -289,7 +289,7 @@ void VaapiJpegDecodeAccelerator::Decode(
|
| scoped_ptr<base::SharedMemory> shm(
|
| new base::SharedMemory(bitstream_buffer.handle(), true));
|
|
|
| - if (!shm->Map(bitstream_buffer.size())) {
|
| + if (!shm->MapAt(bitstream_buffer.offset(), bitstream_buffer.size())) {
|
| LOG(ERROR) << "Failed to map input buffer";
|
| NotifyErrorFromDecoderThread(bitstream_buffer.id(), UNREADABLE_INPUT);
|
| return;
|
|
|