diff --git a/libavutil/hwcontext_vdpau.c b/libavutil/hwcontext_vdpau.c index dbef5495af..fba06d8ccf 100644 --- a/libavutil/hwcontext_vdpau.c +++ b/libavutil/hwcontext_vdpau.c @@ -68,6 +68,11 @@ static const VDPAUPixFmtMap pix_fmts_420[] = { { 0, AV_PIX_FMT_NONE, }, }; +static const VDPAUPixFmtMap pix_fmts_420j[] = { + { VDP_YCBCR_FORMAT_YV12, AV_PIX_FMT_YUVJ420P }, + { 0, AV_PIX_FMT_NONE, }, +}; + static const VDPAUPixFmtMap pix_fmts_422[] = { { VDP_YCBCR_FORMAT_NV12, AV_PIX_FMT_NV16 }, { VDP_YCBCR_FORMAT_YV12, AV_PIX_FMT_YUV422P }, @@ -92,6 +97,7 @@ static const struct { const VDPAUPixFmtMap *map; } vdpau_pix_fmts[] = { { VDP_CHROMA_TYPE_420, AV_PIX_FMT_YUV420P, pix_fmts_420 }, + { VDP_CHROMA_TYPE_420, AV_PIX_FMT_YUVJ420P, pix_fmts_420j }, { VDP_CHROMA_TYPE_422, AV_PIX_FMT_YUV422P, pix_fmts_422 }, { VDP_CHROMA_TYPE_444, AV_PIX_FMT_YUV444P, pix_fmts_444 }, #ifdef VDP_YCBCR_FORMAT_P016