[FFmpeg-devel] [PATCH 1/7] hwcontext_vaapi: Fix condition for DRM device derivation
Mark Thompson
sw at jkqxz.net
Mon Mar 12 00:41:50 EET 2018
vaGetDisplayDRM() is required for this code to work, libdrm is not.
---
libavutil/hwcontext_vaapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index af9a136ef0..99f76b9169 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -1324,7 +1324,7 @@ static int vaapi_device_create(AVHWDeviceContext *ctx, const char *device,
static int vaapi_device_derive(AVHWDeviceContext *ctx,
AVHWDeviceContext *src_ctx, int flags)
{
-#if CONFIG_LIBDRM
+#if HAVE_VAAPI_DRM
if (src_ctx->type == AV_HWDEVICE_TYPE_DRM) {
AVDRMDeviceContext *src_hwctx = src_ctx->hwctx;
VADisplay *display;
--
2.16.1
More information about the ffmpeg-devel
mailing list