Skip to content

Commit

Permalink
Merge pull request #12361 from fritsch/vaapi32bugfix
Browse files Browse the repository at this point in the history
VAAPI: Return false on FF_PROFILE_HEVC_MAIN_10
  • Loading branch information
MartijnKaijser committed Jul 7, 2017
2 parents f0bca79 + e1c9ffa commit 0362b76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp
Expand Up @@ -558,6 +558,11 @@ bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum A
}
case AV_CODEC_ID_HEVC:
{
// for distributions using far newer ffmpeg
// not available when Krypton was released
if (avctx->profile == FF_PROFILE_HEVC_MAIN_10)
return false;

profile = VAProfileHEVCMain;
if (!m_vaapiConfig.context->SupportsProfile(profile))
return false;
Expand Down

0 comments on commit 0362b76

Please sign in to comment.