From 307610095b98b58fb9ec1e491ce9973a8c6feb9a Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Sun, 25 Mar 2018 17:50:34 -0700 Subject: VAAPI: add vp9 profile 2 support --- xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp index dd8f964eef..5530111dda 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp @@ -589,9 +589,10 @@ bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum A } case AV_CODEC_ID_VP9: { - // VAAPI currently only supports Profile 0 if (avctx->profile == FF_PROFILE_VP9_0) profile = VAProfileVP9Profile0; + else if (avctx->profile == FF_PROFILE_VP9_2) + profile = VAProfileVP9Profile2; else profile = VAProfileNone; if (!m_vaapiConfig.context->SupportsProfile(profile)) -- cgit v1.2.3