[FFmpeg-devel] [PATCH] Add YUV420P10 to vaapi hardware decode - permits hardware decoding of HEVC Main 10 on AMD RX 480

Jean-Yves Simon lethalwp at gmail.com
Tue Aug 9 18:15:30 EEST 2016


---
 libavcodec/hevc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index b478065..92b313b 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;
     }
 
-- 
2.7.4



More information about the ffmpeg-devel mailing list