hwcontext_vaapi: Fix build with libva 2.0
authorMark Thompson <sw@jkqxz.net>
Sun, 12 Nov 2017 15:20:45 +0000 (15:20 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 12 Nov 2017 15:38:00 +0000 (15:38 +0000)
vaExportSurfaceHandle() wasn't included in the 2.0 release.

Fixes ticket #6828.

libavutil/hwcontext_vaapi.c

index 40a85d2..0382eb0 100644 (file)
@@ -1076,7 +1076,7 @@ static void vaapi_unmap_to_drm(AVHWFramesContext *dst_fc,
 static int vaapi_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst,
                             const AVFrame *src, int flags)
 {
-#if CONFIG_VAAPI_1
+#if VA_CHECK_VERSION(1, 1, 0)
     AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
     VASurfaceID surface_id;
     VAStatus vas;