summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-27 13:54:20 +0200
committerwm4 <wm4@nowhere>2016-04-27 13:54:20 +0200
commit98969946883e4985f9b65e4987f59c65452a6fe4 (patch)
tree05d935c22b2d1d8bc90ce627fc65b5f68f092c16 /video/decode/vd_lavc.c
parent3706918311ef4cc57b1241e87dcc43d699e960f9 (diff)
downloadmpv-98969946883e4985f9b65e4987f59c65452a6fe4.tar.bz2
mpv-98969946883e4985f9b65e4987f59c65452a6fe4.tar.xz
vd_lavc: adjust D3D11VA autoprobe order
We want to prefer d3d11va over dxva2 anything. But since dxva2 copyback is more efficient than d3d11va's currently, d3d11va-copy should come last.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 810753cf74..ff97e3446c 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -154,12 +154,14 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = {
&mp_vd_lavc_vaapi,
&mp_vd_lavc_vaapi_copy,
#endif
+#if HAVE_D3D11VA_HWACCEL
+ &mp_vd_lavc_d3d11va,
+#endif
#if HAVE_DXVA2_HWACCEL
&mp_vd_lavc_dxva2,
&mp_vd_lavc_dxva2_copy,
#endif
#if HAVE_D3D11VA_HWACCEL
- &mp_vd_lavc_d3d11va,
&mp_vd_lavc_d3d11va_copy,
#endif
#if HAVE_ANDROID