diff options
author | Lukas Rusak <lorusak@gmail.com> | 2018-03-25 17:50:34 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2018-03-25 17:50:34 -0700 |
commit | 307610095b98b58fb9ec1e491ce9973a8c6feb9a (patch) | |
tree | 977abb5be396a2290fa07469b55ed1097303090c | |
parent | a6e6e8b0c698fa3fa8d7d5f835faa8fcdd323970 (diff) |
VAAPI: add vp9 profile 2 support
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |