mirror of
https://github.com/mpv-player/mpv
synced 2025-01-28 02:23:06 +00:00
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.
This commit is contained in:
parent
a52a52fa6e
commit
e73d6e8b63
@ -247,7 +247,7 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = {
|
|||||||
&mp_vd_lavc_videotoolbox,
|
&mp_vd_lavc_videotoolbox,
|
||||||
&mp_vd_lavc_videotoolbox_copy,
|
&mp_vd_lavc_videotoolbox_copy,
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_VAAPI_HWACCEL
|
#if HAVE_VAAPI_HWACCEL_OLD || HAVE_VAAPI_HWACCEL_NEW
|
||||||
&mp_vd_lavc_vaapi,
|
&mp_vd_lavc_vaapi,
|
||||||
&mp_vd_lavc_vaapi_copy,
|
&mp_vd_lavc_vaapi_copy,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user