aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2025-07-23 20:06:43 +0200
committerKacper Michajłow <kasper93@gmail.com>2025-08-04 03:59:42 +0000
commita29aeee37e5679dcebf0d113667e686b71a0095b (patch)
tree2dd4e62659d046bcfd0b1f6ed897d9851091929f
parentbc3cc0a6af44adc63caf4e5097fcfebd7a7475b4 (diff)
downloadffmpeg-a29aeee37e5679dcebf0d113667e686b71a0095b.tar.gz
tests/fate/subtitles: add test for LRC with milliseconds timestamp
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
-rw-r--r--tests/fate/subtitles.mak3
-rw-r--r--tests/ref/fate/sub-lrc-ms-remux49
2 files changed, 52 insertions, 0 deletions
diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index 6aef4090d9..c43ea2200e 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -29,6 +29,9 @@ fate-sub-jacosub-remux: CMP = diff
FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-remux
fate-sub-lrc-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc.lrc
+FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-ms-remux
+fate-sub-lrc-ms-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc-ms.lrc
+
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-lrc-ms-remux b/tests/ref/fate/sub-lrc-ms-remux
new file mode 100644
index 0000000000..4590f612a1
--- /dev/null
+++ b/tests/ref/fate/sub-lrc-ms-remux
@@ -0,0 +1,49 @@
+[ti:Swansong]
+[al:Breadcrumbs]
+[ar:Josh Woodward]
+[length:04:21]
+[by:StarBrilliant]
+
+[-00:01.02](This is a negative timestamp which should not make program crash)
+[00:35.62]I never thought I'd see the day
+[00:38.43]I thought that I had finally moved along
+[00:43.81]And I had let you go so long ago, so long
+[00:49.27]This is not, this is not where I belong
+[00:57.38]So I wait for this shallow itch to pass
+[01:05.98]And I wait, yeah I wait
+[01:12.14]Hey hey, I'm ok
+[01:15.18]I don't need this anyway, I'm fine
+[01:19.83]What's yours and mine
+[01:23.65]Oh oh, I don't know
+[01:26.45]What I was ever hoping I would find
+[01:31.67]But it's time for me to leave this all behind
+[01:35.74]
+[01:46.21]I don't regret a single thing
+[01:48.99]I couldn't say it didn't feel alright
+[01:54.10]But I don't want to stay and I don't want to fight
+[01:59.76]All alone, with my foolish appetite
+[02:07.94]So I wait for this shallow itch to pass
+[02:16.52]And I wait, yeah I wait
+[02:22.73]Hey hey, I'm ok
+[02:25.69]I don't need this anyway, I'm fine
+[02:30.38]What's yours and mine
+[02:34.13]Oh oh, I don't know
+[02:36.99]What I was ever hoping I would find
+[02:42.29]But it's time for me to leave this all behind
+[02:45.37]I don't have the heart to give away to you again
+[02:51.09]I don't have the stomach for it, no one ever wins
+[02:56.71]We had our fun but I have sung this song to you before
+[03:01.69]Here's my last refrain
+[03:08.06]Hey hey, I'm ok
+[03:10.81]I don't need this anyway, I'm fine
+[03:15.50]What's yours and mine
+[03:19.31]Oh oh, I don't know
+[03:22.11]What I was ever hoping I would find
+[03:27.34]But it's time for me to leave this all behind
+[03:30.82]Hey hey, I'm ok
+[03:32.99]I don't need this anyway, I'm fine
+[03:38.03]What's yours and mine
+[03:41.92]Oh oh, I don't know
+[03:44.55]What I was ever hoping I would find
+[03:50.04]But it's time for me to leave this all behind
+[03:54.82]