aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-10 09:13:35 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-22 17:10:44 +0200
commit8c0f5161334aca93c97c42d4f62fde1c5de70b8a (patch)
tree4d173d21f9bc2a39230727c5adc273f4eaf86ea0
parent900bb3f8e29ad0c28bac2cae8c66a319658ec9e6 (diff)
downloadffmpeg-8c0f5161334aca93c97c42d4f62fde1c5de70b8a.tar.gz
tests/fate/ffmpeg: add a test for input -r option
-rw-r--r--tests/fate/ffmpeg.mak4
-rw-r--r--tests/ref/fate/ffmpeg-input-r12
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 892624e523..aca949176a 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -223,3 +223,7 @@ FATE_TIME_BASE-$(call PARSERDEMDEC, MPEGVIDEO, MPEGPS, MPEG2VIDEO, MPEGVIDEO_DEM
fate-time_base: CMD = md5 -i $(TARGET_SAMPLES)/mpeg2/dvd_single_frame.vob -an -sn -c:v copy -r 25 -time_base 1001:30000 -fflags +bitexact -f mxf
FATE_SAMPLES_FFMPEG-yes += $(FATE_TIME_BASE-yes)
+
+# test -r used as an input option
+fate-ffmpeg-input-r: CMD = framecrc -r 27 -i $(TARGET_SAMPLES)/mpeg2/sony-ct3.bs
+FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MPEGVIDEO, MPEG2VIDEO) += fate-ffmpeg-input-r
diff --git a/tests/ref/fate/ffmpeg-input-r b/tests/ref/fate/ffmpeg-input-r
new file mode 100644
index 0000000000..d11f870b10
--- /dev/null
+++ b/tests/ref/fate/ffmpeg-input-r
@@ -0,0 +1,12 @@
+#tb 0: 1/27
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 720x480
+#sar 0: 8/9
+0, 0, 0, 1, 518400, 0xc1866f5f
+0, 1, 1, 1, 518400, 0x9ba32764
+0, 2, 2, 1, 518400, 0xa9031bb8
+0, 3, 3, 1, 518400, 0x5e2c3502
+0, 4, 4, 1, 518400, 0xe860027a
+0, 5, 5, 1, 518400, 0xa9152430
+0, 6, 6, 1, 518400, 0xb98dd9f7