[FFmpeg-cvslog] fate/subtitles: Add JACOsub remuxing test

Andreas Rheinhardt git at videolan.org
Sun Sep 26 00:28:09 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Sep 24 01:06:42 2021 +0200| [0a6eed319d7404443d6250003f761d21aac57dbd] | committer: Andreas Rheinhardt

fate/subtitles: Add JACOsub remuxing test

This muxer was untested up until now; had it been tested, it would
have been obvious that it has been broken for years.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 tests/fate/subtitles.mak         |  4 ++++
 tests/ref/fate/sub-jacosub-remux | 17 +++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index ee65afe35b..cd162786d4 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -22,6 +22,10 @@ fate-binsub-mksenc: CMD = md5pipe -i $(TARGET_SAMPLES)/sub/1ededcbd7b.ass -c cop
 FATE_SUBTITLES_ASS-$(call DEMDEC, JACOSUB, JACOSUB) += fate-sub-jacosub
 fate-sub-jacosub: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss
 
+FATE_SUBTITLES-$(call DEMMUX, JACOSUB, JACOSUB) += fate-sub-jacosub-remux
+fate-sub-jacosub-remux: CMD = transcode jacosub $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss jacosub "-map 0 -c copy" "-map 0 -c copy"
+fate-sub-jacosub-remux: CMP = diff
+
 FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += fate-sub-microdvd
 fate-sub-microdvd: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub
 
diff --git a/tests/ref/fate/sub-jacosub-remux b/tests/ref/fate/sub-jacosub-remux
new file mode 100644
index 0000000000..b8868db891
--- /dev/null
+++ b/tests/ref/fate/sub-jacosub-remux
@@ -0,0 +1,17 @@
+51da69c384709ecfaec940bdecfbce9a *tests/data/fate/sub-jacosub-remux.jacosub
+1065 tests/data/fate/sub-jacosub-remux.jacosub
+#extradata 0:       15, 0x15a10293
+#tb 0: 1/100
+#media_type 0: subtitle
+#codec_id 0: jacosub
+0,         12,         12,      400,      152, 0xab022660
+0,        412,        412,      250,       60, 0xd3dc114d
+0,        512,        512,      210,       33, 0x778307d9
+0,        612,        612,      170,       50, 0x32990db4
+0,        812,        812,      300,      180, 0xc92530ed
+0,       1112,       1112,      250,      122, 0xbfc222a9
+0,       1362,       1362,      125,      111, 0x4c3a1dca
+0,       1487,       1487,      125,       52, 0x57a40f01
+0,       2242,       2242,      550,      122, 0xed8d20a2
+0,       7612,       7612,      500,       86, 0x530d1b76
+0,       7612,       7612,      500,       82, 0xc99119aa



More information about the ffmpeg-cvslog mailing list