Skip to content

Commit

Permalink
VAAPI: Limited VP9 to profile0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
fritsch committed Oct 2, 2017
1 parent ad92d63 commit b149235
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b149235

Please sign in to comment.