[vlc-devel] [PATCH] directx_va: add VP9 decoding support with FFmpeg 57.17

Steve Lhomme robux4 at videolabs.io
Wed Jul 13 13:07:29 CEST 2016


---
 modules/codec/avcodec/directx_va.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index af842d6..bb021d6 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -241,7 +241,11 @@ static const directx_va_mode_t DXVA_MODES[] = {
 
     /* VPx */
     { "VP8",                                                                          &DXVA_ModeVP8_VLD,                      0, NULL },
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 57, 17, 100 )
+    { "VP9 profile 0",                                                                &DXVA_ModeVP9_VLD_Profile0,             AV_CODEC_ID_VP9, NULL },
+#else
     { "VP9 profile 0",                                                                &DXVA_ModeVP9_VLD_Profile0,             0, NULL },
+#endif
 
     { NULL, NULL, 0, NULL }
 };
-- 
2.8.2



More information about the vlc-devel mailing list