File chromium-libva1.patch of Package chromium.openSUSE_Leap_15.0_Update

# Fix compatibility with VA-API library (libva) version 1
# Chromium seems to use version 2 or newer

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;
 
openSUSE Build Service is sponsored by