[vlc-devel] [PATCH] vaapi: add support for HEVC decoding
Mathieu Velten
matmaul at gmail.com
Fri Nov 25 16:14:21 CET 2016
---
modules/codec/avcodec/vaapi.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index 8671139..b58f69a 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -317,7 +317,14 @@ 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_10)
+ i_profile = VAProfileHEVCMain10;
+ else
+ i_profile = VAProfileHEVCMain;
+ count = 18;
+ break;
default:
return VLC_EGENERIC;
}
--
2.9.3
More information about the vlc-devel
mailing list