diff options
author | fritsch <Peter.Fruehberger@gmail.com> | 2017-10-02 16:49:47 +0200 |
---|---|---|
committer | fritsch <Peter.Fruehberger@gmail.com> | 2017-10-02 16:49:47 +0200 |
commit | b149235661ef12e611ff824dd51964dca9fef23c (patch) | |
tree | 532bdab51529faeb8fe6e0e554f1e93baf080a27 | |
parent | ad92d63f5a3044facb3b0ac5c3a510f111c1903f (diff) |
VAAPI: Limited VP9 to profile0 support
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp index c4cad9b87c..3bacfff2f3 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp @@ -603,7 +603,11 @@ bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum A } case AV_CODEC_ID_VP9: { - profile = VAProfileVP9Profile0; + // VAAPI currently only supports Profile 0 + if (avctx->profile == FF_PROFILE_VP9_0) + profile = VAProfileVP9Profile0; + else + profile = VAProfileNone; if (!m_vaapiConfig.context->SupportsProfile(profile)) return false; break; |