Chromium Code Reviews| 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 1f9388e33abb400d88fbd28fbfdc27f228d1bb8a..9872cbb7e100e1637d80ff126768fa9dd7526b04 100644 |
| --- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc |
| +++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc |
| @@ -582,12 +582,14 @@ bool VaapiVideoEncodeAccelerator::PrepareNextJob() { |
| return false; |
| } |
| - current_encode_job_->input_surface = new VASurface( |
| - available_va_surface_ids_.back(), coded_size_, va_surface_release_cb_); |
| + current_encode_job_->input_surface = |
| + new VASurface(available_va_surface_ids_.back(), coded_size_, |
| + VA_RT_FORMAT_YUV420, va_surface_release_cb_); |
|
Pawel Osciak
2015/11/05 10:23:51
We shouldn't be hardcoding the format in multiple
william.xie1
2015/11/06 06:56:14
Done.
|
| available_va_surface_ids_.pop_back(); |
| - current_encode_job_->recon_surface = new VASurface( |
| - available_va_surface_ids_.back(), coded_size_, va_surface_release_cb_); |
| + current_encode_job_->recon_surface = |
| + new VASurface(available_va_surface_ids_.back(), coded_size_, |
| + VA_RT_FORMAT_YUV420, va_surface_release_cb_); |
| available_va_surface_ids_.pop_back(); |
| // Reference surfaces are needed until the job is done, but they get |