From 13dbad6f35381cd90c52ab25ee4e5998261670ff Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 30 Jan 2022 22:56:22 -0600 Subject: [PATCH] Fix build with old libdrm headers --- app/streaming/video/ffmpeg-renderers/drm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/streaming/video/ffmpeg-renderers/drm.cpp b/app/streaming/video/ffmpeg-renderers/drm.cpp index cbc84917..bb314a49 100644 --- a/app/streaming/video/ffmpeg-renderers/drm.cpp +++ b/app/streaming/video/ffmpeg-renderers/drm.cpp @@ -16,6 +16,11 @@ extern "C" { #define DRM_FORMAT_P030 fourcc_code('P', '0', '3', '0') #endif +// Regular P010 (not present in some old libdrm headers) +#ifndef DRM_FORMAT_P010 +#define DRM_FORMAT_P010 fourcc_code('P', '0', '1', '0') +#endif + #include #include