Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Yves Simon <lethalwp@gmail.com>2016-08-09 18:15:30 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-09-26 04:29:00 +0300
commitfb37da37ac1e17f643269ea5bad5bee7e79dcb3a (patch)
tree26ff5851c6d91e22388e81ce01acd06b5c727223 /libavcodec/hevc.c
parent449dc25f56fa1a84285e0f972849c4c40896807b (diff)
avcodec/hevc: Add YUV420P10 to vaapi hardware decode - permits hardware decoding of HEVC Main 10 on AMD RX 480
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index cb1263cb43..764e0938bb 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -370,6 +370,9 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fm
#if CONFIG_HEVC_D3D11VA_HWACCEL
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
#endif
+#if CONFIG_HEVC_VAAPI_HWACCEL
+ *fmt++ = AV_PIX_FMT_VAAPI;
+#endif
break;
}