summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-24 01:06:42 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-25 23:26:38 +0200
commit0a6eed319d7404443d6250003f761d21aac57dbd (patch)
tree1281e1f5228e102890e567889ed5680012622b56
parent54e8dcce8e5fce245715aafe1768beb0b6aa49f5 (diff)
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@outlook.com>
-rw-r--r--tests/fate/subtitles.mak4
-rw-r--r--tests/ref/fate/sub-jacosub-remux17
2 files changed, 21 insertions, 0 deletions
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