From e73d6e8b6313ba0d9dd7fd2c9d0c52b52a4781b7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 23 Mar 2017 11:15:52 +0100 Subject: vd_lavc: fix potential build failure with vaapi If vaapi was found, but neither the old or new libavcodec vaapi hwaccel API, then HAVE_VAAPI_HWACCEL will be defined, but not _OLD or _NEW. The HAVE_VAAPI_HWACCEL define pretty much exists only for acrobatics with our own waf dependency checker helper code. --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/decode') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index d51e834ce2..44be20ea0c 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -247,7 +247,7 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = { &mp_vd_lavc_videotoolbox, &mp_vd_lavc_videotoolbox_copy, #endif -#if HAVE_VAAPI_HWACCEL +#if HAVE_VAAPI_HWACCEL_OLD || HAVE_VAAPI_HWACCEL_NEW &mp_vd_lavc_vaapi, &mp_vd_lavc_vaapi_copy, #endif -- cgit v1.2.3