diff options
author | Peter Frühberger <Peter.Fruehberger@gmail.com> | 2017-10-02 20:47:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 20:47:12 +0200 |
commit | 7acf396cadd0a8a536f939a19f9fa955609140d8 (patch) | |
tree | 2a77eb6c58701fa169c5e998761bfb4c0e27c8a3 | |
parent | b1844f303dadbc04ab56d9a396796d5186e3f8f3 (diff) | |
parent | b149235661ef12e611ff824dd51964dca9fef23c (diff) |
Merge pull request #12872 from fritsch/vaapiifdef
VAAPI: Remove obsolete ifdef
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp index e792e1f92f..3bacfff2f3 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp @@ -601,15 +601,17 @@ bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum A return false; break; } -#if VA_CHECK_VERSION(0,38,1) 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; } -#endif case AV_CODEC_ID_WMV3: profile = VAProfileVC1Main; if (!m_vaapiConfig.context->SupportsProfile(profile)) |