This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit e3bcb9ac76c949bfa3c4c67ca47dfb153d8e82d4 Author: Soham Kute <[email protected]> AuthorDate: Mon Mar 30 03:44:07 2026 +0530 Commit: michaelni <[email protected]> CommitDate: Sun Mar 29 23:01:39 2026 +0000 avformat/tests: add FATE tests for yuv4mpegpipe pixel formats The existing fate-lavf-yuv420p.y4m covers only the default format. Add four entries that pass -pix_fmt explicitly to the lavf_video macro: yuv422p, yuv444p, yuv411p, and gray. These exercise the branches in yuv4mpegpipe_write_header() that write the "C422", "C444", "C411", and "Cmono" chroma descriptor strings in the stream header. All four are gated on ENCDEC(RAWVIDEO,YUV4MPEGPIPE) and added to FATE_LAVF_VIDEO_SCALE so they inherit the requirement for CONFIG_SCALE_FILTER that lavf_video's -auto_conversion_filters needs. Reference files were generated from the actual encoder output and follow the md5+size+CRC format used by the other lavf references. Signed-off-by: Soham Kute <[email protected]> --- tests/fate/lavf-video.mak | 5 +++++ tests/ref/lavf/gray.y4m | 3 +++ tests/ref/lavf/yuv411p.y4m | 3 +++ tests/ref/lavf/yuv422p.y4m | 3 +++ tests/ref/lavf/yuv444p.y4m | 3 +++ 5 files changed, 17 insertions(+) diff --git a/tests/fate/lavf-video.mak b/tests/fate/lavf-video.mak index 971a21d161..fe45e7e389 100644 --- a/tests/fate/lavf-video.mak +++ b/tests/fate/lavf-video.mak @@ -7,6 +7,7 @@ FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, FITS, FITS) += gbrap.fits FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, FITS, FITS) += gbrp16be.fits FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, FITS, FITS) += gbrap16be.fits FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, GIF, GIF) += gif +FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, RAWVIDEO, YUV4MPEGPIPE) += yuv422p.y4m yuv444p.y4m yuv411p.y4m gray.y4m FATE_LAVF_VIDEO-$(call ENCDEC, WRAPPED_AVFRAME RAWVIDEO, YUV4MPEGPIPE) += y4m FATE_LAVF_VIDEO-$(CONFIG_SCALE_FILTER) += $(FATE_LAVF_VIDEO_SCALE-yes) @@ -28,6 +29,10 @@ fate-lavf-gbrap.fits: CMD = lavf_video "-pix_fmt gbrap" fate-lavf-gbrp16be.fits: CMD = lavf_video "-pix_fmt gbrp16be" fate-lavf-gbrap16be.fits: CMD = lavf_video "-pix_fmt gbrap16be" fate-lavf-gif: CMD = lavf_video "-pix_fmt rgb8" +fate-lavf-yuv422p.y4m: CMD = lavf_video "-pix_fmt yuv422p" +fate-lavf-yuv444p.y4m: CMD = lavf_video "-pix_fmt yuv444p" +fate-lavf-yuv411p.y4m: CMD = lavf_video "-pix_fmt yuv411p" +fate-lavf-gray.y4m: CMD = lavf_video "-pix_fmt gray" FATE_AVCONV += $(FATE_LAVF_VIDEO) fate-lavf-video fate-lavf: $(FATE_LAVF_VIDEO) diff --git a/tests/ref/lavf/gray.y4m b/tests/ref/lavf/gray.y4m new file mode 100644 index 0000000000..11cd8253b8 --- /dev/null +++ b/tests/ref/lavf/gray.y4m @@ -0,0 +1,3 @@ +c779de1e2e93cde0adeaa21b64111cec *tests/data/lavf/lavf.gray.y4m +2534607 tests/data/lavf/lavf.gray.y4m +tests/data/lavf/lavf.gray.y4m CRC=0x7aa0122f diff --git a/tests/ref/lavf/yuv411p.y4m b/tests/ref/lavf/yuv411p.y4m new file mode 100644 index 0000000000..a2c5355c14 --- /dev/null +++ b/tests/ref/lavf/yuv411p.y4m @@ -0,0 +1,3 @@ +d7d7776f0784522a214ef8fb3069c277 *tests/data/lavf/lavf.yuv411p.y4m +3801820 tests/data/lavf/lavf.yuv411p.y4m +tests/data/lavf/lavf.yuv411p.y4m CRC=0x16d61100 diff --git a/tests/ref/lavf/yuv422p.y4m b/tests/ref/lavf/yuv422p.y4m new file mode 100644 index 0000000000..70f450a192 --- /dev/null +++ b/tests/ref/lavf/yuv422p.y4m @@ -0,0 +1,3 @@ +ad537b0730f3dc46b6f8b82d94570aa5 *tests/data/lavf/lavf.yuv422p.y4m +5069020 tests/data/lavf/lavf.yuv422p.y4m +tests/data/lavf/lavf.yuv422p.y4m CRC=0x93eac3cf diff --git a/tests/ref/lavf/yuv444p.y4m b/tests/ref/lavf/yuv444p.y4m new file mode 100644 index 0000000000..006a5e0f4c --- /dev/null +++ b/tests/ref/lavf/yuv444p.y4m @@ -0,0 +1,3 @@ +7acc4122d48078e867aa4a974f41d656 *tests/data/lavf/lavf.yuv444p.y4m +7603420 tests/data/lavf/lavf.yuv444p.y4m +tests/data/lavf/lavf.yuv444p.y4m CRC=0x898ea94b _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
