History

tests/fate/subtitles: add test for LRC with milliseconds timestamp

Kacper Michajłow committed 1 year ago

Commit a29aeee1 parent bc3cc0a2 files · +52 −0Browse files

Unified · Split

2 files
  1. tests/fate/subtitles.mak +3 −0
  2. tests/ref/fate/sub-lrc-ms-remux +49 −0
tests/fate/subtitles.mak+3−0
@@ -29,6 +29,9 @@ fate-sub-jacosub-remux: CMP = diff · 28 unmodified lines
29FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-remux29FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-remux
30fate-sub-lrc-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc.lrc30fate-sub-lrc-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc.lrc
31 31
32FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-ms-remux
33fate-sub-lrc-ms-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc-ms.lrc
34
32FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += fate-sub-microdvd35FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += fate-sub-microdvd
33fate-sub-microdvd: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub36fate-sub-microdvd: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub
34 37
tests/ref/fate/sub-lrc-ms-remux+49−0
@@ -0,0 +1,49 @@
1[ti:Swansong]
2[al:Breadcrumbs]
3[ar:Josh Woodward]
4[length:04:21]
5[by:StarBrilliant]
6
7[-00:01.02](This is a negative timestamp which should not make program crash)
8[00:35.62]I never thought I'd see the day
9[00:38.43]I thought that I had finally moved along
10[00:43.81]And I had let you go so long ago, so long
11[00:49.27]This is not, this is not where I belong
12[00:57.38]So I wait for this shallow itch to pass
13[01:05.98]And I wait, yeah I wait
14[01:12.14]Hey hey, I'm ok
15[01:15.18]I don't need this anyway, I'm fine
16[01:19.83]What's yours and mine
17[01:23.65]Oh oh, I don't know
18[01:26.45]What I was ever hoping I would find
19[01:31.67]But it's time for me to leave this all behind
20[01:35.74]
21[01:46.21]I don't regret a single thing
22[01:48.99]I couldn't say it didn't feel alright
23[01:54.10]But I don't want to stay and I don't want to fight
24[01:59.76]All alone, with my foolish appetite
25[02:07.94]So I wait for this shallow itch to pass
26[02:16.52]And I wait, yeah I wait
27[02:22.73]Hey hey, I'm ok
28[02:25.69]I don't need this anyway, I'm fine
29[02:30.38]What's yours and mine
30[02:34.13]Oh oh, I don't know
31[02:36.99]What I was ever hoping I would find
32[02:42.29]But it's time for me to leave this all behind
33[02:45.37]I don't have the heart to give away to you again
34[02:51.09]I don't have the stomach for it, no one ever wins
35[02:56.71]We had our fun but I have sung this song to you before
36[03:01.69]Here's my last refrain
37[03:08.06]Hey hey, I'm ok
38[03:10.81]I don't need this anyway, I'm fine
39[03:15.50]What's yours and mine
40[03:19.31]Oh oh, I don't know
41[03:22.11]What I was ever hoping I would find
42[03:27.34]But it's time for me to leave this all behind
43[03:30.82]Hey hey, I'm ok
44[03:32.99]I don't need this anyway, I'm fine
45[03:38.03]What's yours and mine
46[03:41.92]Oh oh, I don't know
47[03:44.55]What I was ever hoping I would find
48[03:50.04]But it's time for me to leave this all behind
49[03:54.82]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t