[vlc-commits] directx_va: fix profile detection

Steve Lhomme git at videolan.org
Wed Mar 25 11:23:29 CET 2020


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

directx_va: fix profile detection

0 is an actual VP9 profile

(cherry picked from commit 70bd8ada6e275749f091ad0150c12bcf6d7cf2d9)

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

 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 e33c72e41a..18f007f36c 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -357,7 +357,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