[FFmpeg-cvslog] tests/fate/ffmpeg: add tests for -max_error_rate

Anton Khirnov git at videolan.org
Mon Jun 5 17:30:46 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Jun  3 18:53:54 2023 +0200| [09af34dc919236916d71b9f0f1997f9aff4e4048] | committer: Anton Khirnov

tests/fate/ffmpeg: add tests for -max_error_rate

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

 tests/fate/ffmpeg.mak                 | 6 ++++++
 tests/ref/fate/ffmpeg-error-rate-fail | 0
 tests/ref/fate/ffmpeg-error-rate-pass | 0
 3 files changed, 6 insertions(+)

diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 800f3a03d2..223bc97f8e 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -227,3 +227,9 @@ FATE_SAMPLES_FFMPEG-yes += $(FATE_TIME_BASE-yes)
 # test -r used as an input option
 fate-ffmpeg-input-r: CMD = framecrc -r 27 -idct simple -i $(TARGET_SAMPLES)/mpeg2/sony-ct3.bs
 FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MPEGVIDEO, MPEG2VIDEO) += fate-ffmpeg-input-r
+
+# file with completely undecodable TTA audio stream
+# by default should exit with error code 69
+fate-ffmpeg-error-rate-fail: CMD = ffmpeg -i $(TARGET_SAMPLES)/mkv/h264_tta_undecodable.mkv -c:v copy -f null -; test $$? -eq 69
+fate-ffmpeg-error-rate-pass: CMD = ffmpeg -i $(TARGET_SAMPLES)/mkv/h264_tta_undecodable.mkv -c:v copy -f null - -max_error_rate 1
+FATE_SAMPLES_FFMPEG-$(call ENCDEC, PCM_S16LE TTA, NULL MATROSKA) += fate-ffmpeg-error-rate-fail fate-ffmpeg-error-rate-pass
diff --git a/tests/ref/fate/ffmpeg-error-rate-fail b/tests/ref/fate/ffmpeg-error-rate-fail
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/ref/fate/ffmpeg-error-rate-pass b/tests/ref/fate/ffmpeg-error-rate-pass
new file mode 100644
index 0000000000..e69de29bb2



More information about the ffmpeg-cvslog mailing list