| Index: content/common/gpu/media/vaapi_video_encode_accelerator.cc
|
| diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.cc b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
|
| index cdd03a156fb5194eeef7ed0f4b786315b37dd5c2..dc2bb557f87ebd7155c345defc85e06a50098422 100644
|
| --- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc
|
| +++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
|
| @@ -225,8 +225,9 @@ void VaapiVideoEncodeAccelerator::InitializeTask() {
|
| base::Bind(&VaapiVideoEncodeAccelerator::RecycleVASurfaceID,
|
| base::Unretained(this)));
|
|
|
| - if (!vaapi_wrapper_->CreateSurfaces(
|
| - coded_size_, kNumSurfaces, &available_va_surface_ids_)) {
|
| + if (!vaapi_wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, coded_size_,
|
| + kNumSurfaces,
|
| + &available_va_surface_ids_)) {
|
| NOTIFY_ERROR(kPlatformFailureError, "Failed creating VASurfaces");
|
| return;
|
| }
|
|
|