diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index c74881e814..7448be482c 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -425,6 +425,12 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps) #endif #if CONFIG_HEVC_NVDEC_HWACCEL *fmt++ = AV_PIX_FMT_CUDA; +#endif + break; + case AV_PIX_FMT_YUV422P: + case AV_PIX_FMT_YUV422P10LE: +#if CONFIG_HEVC_VAAPI_HWACCEL + *fmt++ = AV_PIX_FMT_VAAPI; #endif break; case AV_PIX_FMT_YUV420P12: