Commit e60e5ba44b for ffmpeg
commit e60e5ba44bafde6b39d4a358d37dd618fb43c65d
Author: Romain Beauxis <romain.beauxis@gmail.com>
Date: Sat Nov 7 09:32:45 2026 -0600
tests/fate/preroll: check a concat inpoint on a video keyframe
An inpoint on a keyframe of a Matroska file with AAC must start the
cut on that keyframe.
The reference shows the current behaviour, which starts on the
keyframe before.
diff --git a/tests/fate/preroll.mak b/tests/fate/preroll.mak
index 243b9d0731..6c9cbd8597 100644
--- a/tests/fate/preroll.mak
+++ b/tests/fate/preroll.mak
@@ -66,6 +66,10 @@ FATE_PREROLL_SEEK-$(call ALLYES, CONCAT_DEMUXER MOV_DEMUXER AAC_DECODER FILE_PRO
fate-preroll-aac-concat-seek: tests/data/samples/gapless/102400samples_qt-lc-aac.m4a
fate-preroll-aac-concat-seek: CMD = seek_concat $(SRC_PATH)/tests/preroll.ffconcat ../samples/gapless_102400samples_qt-lc-aac.m4a -seekback 530000 -frames 3 -duration 3
+# An inpoint on a video keyframe: the cut starts at that keyframe.
+FATE_PREROLL_FFPROBE-$(call ALLYES, CONCAT_DEMUXER MATROSKA_DEMUXER H264_DECODER AAC_DECODER FILE_PROTOCOL PIPE_PROTOCOL) += fate-preroll-aac-concat-inpoint
+fate-preroll-aac-concat-inpoint: CMD = printf "ffconcat version 1.0\nfile file:%s\ninpoint 3\n" $(TARGET_SAMPLES)/mkv/test7_cut.mkv | run ffprobe$(PROGSSUF)$(EXESUF) -protocol_whitelist pipe,file -safe 0 -auto_convert 0 -f concat -i pipe: -read_intervals %+\#4 -show_entries packet=stream_index,pts,flags:packet_side_data=skip_samples -print_format compact
+
# A seek close to the start of a stream whose start time is unknown.
FATE_PREROLL_SEEK-$(call DEMDEC, AAC, AAC) += fate-preroll-aac-adts-seek-start
fate-preroll-aac-adts-seek-start: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/aac/id3v2.aac -seekback 10000 -frames 2 -duration 3
diff --git a/tests/ref/fate/preroll-aac-concat-inpoint b/tests/ref/fate/preroll-aac-concat-inpoint
new file mode 100644
index 0000000000..e9f9d75572
--- /dev/null
+++ b/tests/ref/fate/preroll-aac-concat-inpoint
@@ -0,0 +1,4 @@
+packet|stream_index=0|pts=-1000|flags=K__
+packet|stream_index=1|pts=-986|flags=K__|side_datum/skip_samples:skip_samples=1024
+packet|stream_index=1|pts=-965|flags=K__
+packet|stream_index=1|pts=-944|flags=K__