---
 tests/fate/ffmpeg.mak       | 8 ++++++++
 tests/ref/fate/shortest-sub | 4 ++++
 2 files changed, 12 insertions(+)
 create mode 100644 tests/ref/fate/shortest-sub

diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 94f50423be..154af2fac8 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -99,6 +99,14 @@ FATE_SAMPLES_FFMPEG-$(call FILTERDEMDEC, AMIX ARESAMPLE 
SINE, RAWVIDEO, \
 fate-shortest: tests/data/vsynth_lena.yuv
 fate-shortest: CMD = framecrc -auto_conversion_filters -f lavfi -i 
"sine=3000:d=10" -f lavfi -i "sine=1000:d=1" -sws_flags +accurate_rnd+bitexact 
-fflags +bitexact -flags +bitexact -idct simple -f rawvideo -s 352x288 -pix_fmt 
yuv420p -i $(TARGET_PATH)/tests/data/vsynth_lena.yuv -filter_complex 
"[0:a:0][1:a:0]amix=inputs=2[audio]" -map 2:v:0 -map "[audio]" -sws_flags 
+accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -dct 
fastint -qscale 10 -threads 1 -c:v mpeg4 -c:a ac3_fixed -shortest
 
+# test interleaving video with a sparse subtitle stream
+FATE_SAMPLES_FFMPEG-$(call ALLYES, COLOR_FILTER, VOBSUB_DEMUXER, 
MATROSKA_DEMUXER,, \
+                           RAWVIDEO_ENCODER, MATROSKA_MUXER, FRAMECRC_MUXER) 
+= fate-shortest-sub
+fate-shortest-sub: CMD = enc_dec                                               
                       \
+        vobsub $(TARGET_SAMPLES)/sub/vobsub.idx matroska                       
                       \
+        "-filter_complex 'color=s=1x1:rate=1:duration=400' -pix_fmt rgb24 
-allow_raw_vfw 1 -c:s copy -c:v rawvideo"  \
+        framecrc "-map 0 -c copy -shortest"
+
 # Basic test for fix_sub_duration, which calculates duration based on the
 # following subtitle's pts.
 FATE_SAMPLES_FFMPEG-$(call FILTERDEMDECENCMUX, MOVIE, MPEGVIDEO, \
diff --git a/tests/ref/fate/shortest-sub b/tests/ref/fate/shortest-sub
new file mode 100644
index 0000000000..3b28898177
--- /dev/null
+++ b/tests/ref/fate/shortest-sub
@@ -0,0 +1,4 @@
+52bc3d6a0c80e639095a2c28da4ef42c *tests/data/fate/shortest-sub.matroska
+139246 tests/data/fate/shortest-sub.matroska
+d71f5d359ef788ea689415bc1e4a90df *tests/data/fate/shortest-sub.out.framecrc
+stddev:11541.12 PSNR: 15.08 MAXDIFF:22854 bytes:     2591/    26055
-- 
2.34.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to