From 78454c68f2f646c8e382fa5dacba71eaec4ad431 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 Oct 2026 15:00:40 +0000 Subject: [PATCH] tests/fate: cover concat next on the last segment Send next while the final segment is active and compare all output frames. This covers rejection without truncating the remaining segment, using generated sources and no external samples. Assisted-by: Fairy --- tests/fate/filter-video.mak | 4 ++++ tests/filtergraphs/concat-next-last | 3 +++ tests/ref/fate/filter-concat-next-last | 17 +++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 tests/filtergraphs/concat-next-last create mode 100644 tests/ref/fate/filter-concat-next-last diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 81088a448c..82ab48dc68 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -467,6 +467,10 @@ FATE_FILTER_SAMPLES-$(call FILTERDEMDEC, FORMAT PERMS GRADFUN SCALE, VMD, VMDVID fate-filter-gradfun-sample: tests/data/filtergraphs/gradfun fate-filter-gradfun-sample: CMD = framecrc -auto_conversion_filters -i $(TARGET_SAMPLES)/vmd/12.vmd -/filter $(TARGET_PATH)/tests/data/filtergraphs/gradfun -an -frames:v 20 +FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC2 CONCAT SENDCMD, FILE_PROTOCOL) += fate-filter-concat-next-last +fate-filter-concat-next-last: tests/data/filtergraphs/concat-next-last +fate-filter-concat-next-last: CMD = framecrc -/filter_complex $(TARGET_PATH)/tests/data/filtergraphs/concat-next-last + FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC SINE CONCAT, FILE_PROTOCOL) += fate-filter-concat fate-filter-concat-vfr fate-filter-concat: tests/data/filtergraphs/concat fate-filter-concat: CMD = framecrc -/filter_complex $(TARGET_PATH)/tests/data/filtergraphs/concat diff --git a/tests/filtergraphs/concat-next-last b/tests/filtergraphs/concat-next-last new file mode 100644 index 0000000000..d24ffe2e07 --- /dev/null +++ b/tests/filtergraphs/concat-next-last @@ -0,0 +1,3 @@ +testsrc2=s=64x48:r=10:d=0.2[a]; +testsrc2=s=64x48:r=10:d=1[b]; +[a][b]concat=n=2:v=1:a=0,sendcmd=c='0.3 concat next' diff --git a/tests/ref/fate/filter-concat-next-last b/tests/ref/fate/filter-concat-next-last new file mode 100644 index 0000000000..bf0632a17a --- /dev/null +++ b/tests/ref/fate/filter-concat-next-last @@ -0,0 +1,17 @@ +#tb 0: 1/10 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 64x48 +#sar 0: 1/1 +0, 0, 0, 1, 4608, 0x07646800 +0, 1, 1, 1, 4608, 0x674567b3 +0, 2, 2, 1, 4608, 0x07646800 +0, 3, 3, 1, 4608, 0x674567b3 +0, 4, 4, 1, 4608, 0x1c72674f +0, 5, 5, 1, 4608, 0x33826739 +0, 6, 6, 1, 4608, 0x4ce5672f +0, 7, 7, 1, 4608, 0x25b1672c +0, 8, 8, 1, 4608, 0x78346722 +0, 9, 9, 1, 4608, 0x1ff76728 +0, 10, 10, 1, 4608, 0xce5a6724 +0, 11, 11, 1, 4608, 0x7aca671b