mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-slava86.git
synced 2025-02-23 23:42:54 +00:00
19 lines
1.1 KiB
Diff
19 lines
1.1 KiB
Diff
# Fix compatibility with VA-API library (libva) version 1
|
|
# Chromium seems to use version 2 or newer
|
|
|
|
# Source: https://build.opensuse.org/package/view_file/network:chromium/chromium/chromium-libva1.patch
|
|
# (mikhailnov) We put it on top of chromium-vaapi-r21.patch (https://aur.archlinux.org/cgit/aur.git/tree/chromium-vaapi-r21.patch?h=chromium-vaapi)
|
|
|
|
Index: chromium-70.0.3538.67/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
|
===================================================================
|
|
--- chromium-70.0.3538.67.orig/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
|
+++ chromium-70.0.3538.67/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
|
|
@@ -295,7 +295,8 @@ bool VaapiJpegDecodeAccelerator::Initial
|
|
// TODO(crbug.com/828119): Try a list of possible supported formats rather
|
|
// than hardcoding the format to I420 here.
|
|
va_image_format_ = base::WrapUnique(new VAImageFormat{});
|
|
- va_image_format_->fourcc = VA_FOURCC_I420;
|
|
+ const uint32_t kI420Fourcc = VA_FOURCC('I', '4', '2', '0');
|
|
+ va_image_format_->fourcc = kI420Fourcc;
|
|
va_image_format_->byte_order = VA_LSB_FIRST;
|
|
va_image_format_->bits_per_pixel = 12;
|