vlc | branch: master | Mathieu Velten <[email protected]> | Mon Nov 28 20:11:05 2016 +0100| [df48e332f748fb05205476f53ed7a53fde13462e] | committer: Rémi Denis-Courmont
vaapi: add support for HEVC decoding Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df48e332f748fb05205476f53ed7a53fde13462e --- modules/codec/avcodec/vaapi.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c index d0affab..c9e51fe 100644 --- a/modules/codec/avcodec/vaapi.c +++ b/modules/codec/avcodec/vaapi.c @@ -317,7 +317,16 @@ static int Create( vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt, case AV_CODEC_ID_H264: i_profile = VAProfileH264High; count = 18; - break;; + break; + case AV_CODEC_ID_HEVC: + if (ctx->profile == FF_PROFILE_HEVC_MAIN) + i_profile = VAProfileHEVCMain; + else if (ctx->profile == FF_PROFILE_HEVC_MAIN_10) + i_profile = VAProfileHEVCMain10; + else + return VLC_EGENERIC; + count = 18; + break; default: return VLC_EGENERIC; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
