diff options
author | wm4 <wm4@nowhere> | 2017-03-23 11:15:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-23 11:15:52 +0100 |
commit | e73d6e8b6313ba0d9dd7fd2c9d0c52b52a4781b7 (patch) | |
tree | cb531dbfe1e0af0dc1d97f665b04a9190549ee08 /video/decode | |
parent | a52a52fa6ec4265a2aeb39d775f46ebc928fe8c7 (diff) | |
download | mpv-e73d6e8b6313ba0d9dd7fd2c9d0c52b52a4781b7.tar.bz2 mpv-e73d6e8b6313ba0d9dd7fd2c9d0c52b52a4781b7.tar.xz |
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.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |