| Index: media/gpu/vaapi_video_decode_accelerator.cc
|
| diff --git a/media/gpu/vaapi_video_decode_accelerator.cc b/media/gpu/vaapi_video_decode_accelerator.cc
|
| index a119f0fd16b039ddefc831c5be2fef71e14837de..cda345954a0691df5af54fae66e19ba0a075a7af 100644
|
| --- a/media/gpu/vaapi_video_decode_accelerator.cc
|
| +++ b/media/gpu/vaapi_video_decode_accelerator.cc
|
| @@ -41,7 +41,8 @@ enum VAVDADecoderFailure {
|
|
|
| // Buffer format to use for output buffers backing PictureBuffers. This is the
|
| // format decoded frames in VASurfaces are converted into.
|
| -const gfx::BufferFormat kAllocatePictureFormat = gfx::BufferFormat::BGRA_8888;
|
| +const gfx::BufferFormat kAllocatePictureFormat = gfx::BufferFormat::YUYV_422;
|
| +
|
| const gfx::BufferFormat kImportPictureFormat = gfx::BufferFormat::YVU_420;
|
| }
|
|
|
| @@ -664,10 +665,10 @@ static VideoPixelFormat BufferFormatToVideoPixelFormat(
|
| switch (format) {
|
| case gfx::BufferFormat::BGRA_8888:
|
| return PIXEL_FORMAT_ARGB;
|
| -
|
| case gfx::BufferFormat::YVU_420:
|
| return PIXEL_FORMAT_YV12;
|
| -
|
| + case gfx::BufferFormat::YUYV_422:
|
| + return PIXEL_FORMAT_YUY2;
|
| default:
|
| LOG(FATAL) << "Add more cases as needed";
|
| return PIXEL_FORMAT_UNKNOWN;
|
|
|