From 8ed1368501d5259973b0334722f09112b18ca203 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 25 Nov 2021 14:07:43 +1000 Subject: vo_gpu: hwdec_vaapi: avoid drm_fourcc.h dependency Suggested by haasn --- video/out/hwdec/hwdec_vaapi_gl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/video/out/hwdec/hwdec_vaapi_gl.c b/video/out/hwdec/hwdec_vaapi_gl.c index 482082cd80..961771af80 100644 --- a/video/out/hwdec/hwdec_vaapi_gl.c +++ b/video/out/hwdec/hwdec_vaapi_gl.c @@ -19,12 +19,15 @@ #include "hwdec_vaapi.h" #include -#include #include "video/out/opengl/ra_gl.h" typedef void* GLeglImageOES; typedef void *EGLImageKHR; +#ifndef DRM_FORMAT_MOD_INVALID +#define DRM_FORMAT_MOD_INVALID ((UINT64_C(1) << 56) - 1) +#endif + // Any EGL_EXT_image_dma_buf_import definitions used in this source file. #define EGL_LINUX_DMA_BUF_EXT 0x3270 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271 -- cgit v1.2.3