[FFmpeg-devel] [PATCH v1 4/9] lavc/hevcdec: add 4:2:0 12-bit VAAPI decode support
Fei Wang
fei.w.wang at intel.com
Fri Jun 19 04:52:43 EEST 2020
Signed-off-by: Fei Wang <fei.w.wang at intel.com>
---
libavcodec/hevcdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index c9e28f5826..d9c54fbc6a 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -433,6 +433,10 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
#endif
break;
case AV_PIX_FMT_YUV420P12:
+#if CONFIG_HEVC_VAAPI_HWACCEL
+ *fmt++ = AV_PIX_FMT_VAAPI;
+#endif
+ break;
case AV_PIX_FMT_YUV444P10:
case AV_PIX_FMT_YUV444P12:
#if CONFIG_HEVC_NVDEC_HWACCEL
--
2.17.1
More information about the ffmpeg-devel
mailing list