diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-11-12 15:20:45 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-11-12 15:38:00 +0000 |
commit | 1ef4af2d492e87e6d9fc9157a2d9c7f95585f61c (patch) | |
tree | 2c3d508c91206ffd5ef37286252b6a64734a8602 /libavutil | |
parent | 3f6294a53d58ececeacb42ce2ba8349a8b0a4abb (diff) | |
download | ffmpeg-1ef4af2d492e87e6d9fc9157a2d9c7f95585f61c.tar.gz |
hwcontext_vaapi: Fix build with libva 2.0
vaExportSurfaceHandle() wasn't included in the 2.0 release.
Fixes ticket #6828.
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 40a85d288c..0382eb06f2 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -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; |