summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index ebfd986a95..64542be69d 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -103,18 +103,17 @@ static const struct vd_lavc_hwdec mp_vd_lavc_crystalhd = {
};
static const struct vd_lavc_hwdec *hwdec_list[] = {
-#if CONFIG_VDPAU
-#if HAVE_AV_CODEC_NEW_VDPAU_API
+#if HAVE_VDPAU_HWACCEL
&mp_vd_lavc_vdpau,
-#else
+#endif
+#if HAVE_VDPAU_DECODER
&mp_vd_lavc_vdpau_old,
#endif
-#endif // CONFIG_VDPAU
-#if CONFIG_VDA
+#if HAVE_VDA_HWACCEL
&mp_vd_lavc_vda,
#endif
&mp_vd_lavc_crystalhd,
-#if CONFIG_VAAPI
+#if HAVE_VAAPI_HWACCEL
&mp_vd_lavc_vaapi,
&mp_vd_lavc_vaapi_copy,
#endif