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
This commit is contained in:
Michael Niedermayer authored and michaelni committed 2026-11-06 01:58:48 +00:00
1 parent 58c989a73d
commit 78454c68f2
3 files changed
+24

No files matched your search

+4
View File
@@ -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
+3
View File
@@ -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'
+17
View File
@@ -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