summaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext_vaapi.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-03-11 21:16:25 +0000
committerMark Thompson <sw@jkqxz.net>2018-03-18 17:55:00 +0000
commit389f4c3e0d0a26a7d3d2696017384874cf5e93fa (patch)
tree4c5d90d1f935a544bc43377ec144cb3020214014 /libavutil/hwcontext_vaapi.c
parent84bb8327f571c4924789413efafde47d96b8b72b (diff)
downloadffmpeg-streaming-389f4c3e0d0a26a7d3d2696017384874cf5e93fa.zip
ffmpeg-streaming-389f4c3e0d0a26a7d3d2696017384874cf5e93fa.tar.gz
hwcontext_vaapi: Fix condition for DRM device derivation
vaGetDisplayDRM() is required for this code to work, libdrm is not.
Diffstat (limited to 'libavutil/hwcontext_vaapi.c')
-rw-r--r--libavutil/hwcontext_vaapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index af9a136..99f76b9 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;
OpenPOWER on IntegriCloud