[vlc-commits] directx_va: fix profile detection

Steve Lhomme git at videolan.org
Fri Apr 20 12:24:01 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Apr 20 12:02:42 2018 +0200| [70bd8ada6e275749f091ad0150c12bcf6d7cf2d9] | committer: Steve Lhomme

directx_va: fix profile detection

0 is an actual VP9 profile

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

 modules/codec/avcodec/directx_va.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index fff547502a..b69e092d6e 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -358,7 +358,7 @@ error:
 static bool profile_supported(const directx_va_mode_t *mode, const es_format_t *fmt,
                               const AVCodecContext *avctx)
 {
-    bool is_supported = mode->p_profiles == NULL || !mode->p_profiles[0];
+    bool is_supported = mode->p_profiles == NULL;
     if (!is_supported)
     {
         int profile = fmt->i_profile >= 0 ? fmt->i_profile : avctx->profile;



More information about the vlc-commits mailing list