[FFmpeg-cvslog] hwcontext_vaapi: Fix build with libva 2.0

Mark Thompson git at videolan.org
Sun Nov 12 17:38:56 EET 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sun Nov 12 15:20:45 2017 +0000| [1ef4af2d492e87e6d9fc9157a2d9c7f95585f61c] | committer: Mark Thompson

hwcontext_vaapi: Fix build with libva 2.0

vaExportSurfaceHandle() wasn't included in the 2.0 release.

Fixes ticket #6828.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ef4af2d492e87e6d9fc9157a2d9c7f95585f61c
---

 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 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;



More information about the ffmpeg-cvslog mailing list