From: Good Guy Date: Wed, 15 Apr 2020 19:14:36 +0000 (-0600) Subject: add ffmpeg patch for mjpeg vdpau hw accel X-Git-Tag: 2020-04~12 X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=commitdiff_plain;h=c918cfaab5825e489e892073b9871543b3c788ec;hp=36c1a626ea9ce0b3b369c53878f36dd76784a043 add ffmpeg patch for mjpeg vdpau hw accel --- diff --git a/cinelerra-5.1/thirdparty/src/ffmpeg-4.2.patchA b/cinelerra-5.1/thirdparty/src/ffmpeg-4.2.patchA new file mode 100644 index 00000000..6d175cb6 --- /dev/null +++ b/cinelerra-5.1/thirdparty/src/ffmpeg-4.2.patchA @@ -0,0 +1,23 @@ +diff -ru a/libavutil/hwcontext_vdpau.c b/libavutil/hwcontext_vdpau.c +--- a/libavutil/hwcontext_vdpau.c 2019-08-05 14:52:21.000000000 -0600 ++++ b/libavutil/hwcontext_vdpau.c 2020-04-15 10:59:45.793687570 -0600 +@@ -64,6 +64,11 @@ + { 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 }, +@@ -85,6 +90,7 @@ + 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 }, + };