[FFmpeg-cvslog] tests/fate/ffmpeg: add a test for input -r option

Anton Khirnov git at videolan.org
Mon May 22 18:11:27 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed May 10 09:13:35 2023 +0200| [8c0f5161334aca93c97c42d4f62fde1c5de70b8a] | committer: Anton Khirnov

tests/fate/ffmpeg: add a test for input -r option

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c0f5161334aca93c97c42d4f62fde1c5de70b8a
---

 tests/fate/ffmpeg.mak         |  4 ++++
 tests/ref/fate/ffmpeg-input-r | 12 ++++++++++++
 2 files changed, 16 insertions(+)

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



More information about the ffmpeg-cvslog mailing list