aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Simon <lethalwp@gmail.com>2016-08-09 17:15:30 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-09-26 03:29:00 +0200
commitfb37da37ac1e17f643269ea5bad5bee7e79dcb3a (patch)
tree26ff5851c6d91e22388e81ce01acd06b5c727223
parent449dc25f56fa1a84285e0f972849c4c40896807b (diff)
downloadffmpeg-fb37da37ac1e17f643269ea5bad5bee7e79dcb3a.tar.gz
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>
-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;
}