[vlc-commits] avcodec:va: make D3D11VA and DXVA2 available when "any" avcodec-hw is selected

Steve Lhomme git at videolan.org
Wed Aug 9 15:27:43 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Jul 28 17:17:45 2017 +0200| [f0e281529dcc867d90e045d04677afd1e0893de9] | committer: Jean-Baptiste Kempf

avcodec:va: make D3D11VA and DXVA2 available when "any" avcodec-hw is selected

Ref #18078

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f0e281529dcc867d90e045d04677afd1e0893de9
---

 modules/codec/avcodec/d3d11va.c | 2 +-
 modules/codec/avcodec/dxva2.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index c026f8b9b5..8987b42220 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -62,7 +62,7 @@ static void Close(vlc_va_t *, void **);
 
 vlc_module_begin()
     set_description(N_("Direct3D11 Video Acceleration"))
-    set_capability("hw decoder", 0)
+    set_capability("hw decoder", 110)
     set_category(CAT_INPUT)
     set_subcategory(SUBCAT_INPUT_VCODEC)
     set_callbacks(Open, Close)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 0977990671..6204fd3e32 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -50,7 +50,7 @@ static void Close(vlc_va_t *, void **);
 
 vlc_module_begin()
     set_description(N_("DirectX Video Acceleration (DXVA) 2.0"))
-    set_capability("hw decoder", 0)
+    set_capability("hw decoder", 100)
     set_category(CAT_INPUT)
     set_subcategory(SUBCAT_INPUT_VCODEC)
     set_callbacks(Open, Close)



More information about the vlc-commits mailing list