ffmpeg patches for TERMUX from Andrew + mpeg formats
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg-4.4.patchA
1 diff --git a/libavutil/hwcontext_vdpau.c b/libavutil/hwcontext_vdpau.c
2 index dbef5495af..fba06d8ccf 100644
3 --- a/libavutil/hwcontext_vdpau.c
4 +++ b/libavutil/hwcontext_vdpau.c
5 @@ -68,6 +68,11 @@ static const VDPAUPixFmtMap pix_fmts_420[] = {
6      { 0,                     AV_PIX_FMT_NONE,   },
7  };
8  
9 +static const VDPAUPixFmtMap pix_fmts_420j[] = {
10 +    { VDP_YCBCR_FORMAT_YV12, AV_PIX_FMT_YUVJ420P },
11 +    { 0,                     AV_PIX_FMT_NONE,   },
12 +};
13 +
14  static const VDPAUPixFmtMap pix_fmts_422[] = {
15      { VDP_YCBCR_FORMAT_NV12, AV_PIX_FMT_NV16    },
16      { VDP_YCBCR_FORMAT_YV12, AV_PIX_FMT_YUV422P },
17 @@ -92,6 +97,7 @@ static const struct {
18      const VDPAUPixFmtMap *map;
19  } vdpau_pix_fmts[] = {
20      { VDP_CHROMA_TYPE_420, AV_PIX_FMT_YUV420P, pix_fmts_420 },
21 +    { VDP_CHROMA_TYPE_420, AV_PIX_FMT_YUVJ420P, pix_fmts_420j },
22      { VDP_CHROMA_TYPE_422, AV_PIX_FMT_YUV422P, pix_fmts_422 },
23      { VDP_CHROMA_TYPE_444, AV_PIX_FMT_YUV444P, pix_fmts_444 },
24  #ifdef VDP_YCBCR_FORMAT_P016