From 50b344321ed91853f48f1e9385e2fb2f67e6cbe3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 10 Nov 2014 11:49:00 +0100 Subject: [PATCH] srt timestamps must include milliseconds, fixes #2550 --- source/Ox/js/Format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index 5fa8514b..b0d1f914 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -748,7 +748,7 @@ Ox.formatSRT = function(subtitles) { return [ index + 1, ['in', 'out'].map(function(key) { - return Ox.formatDuration(subtitle[key]).replace('.', ','); + return Ox.formatDuration(subtitle[key], 3).replace('.', ','); }).join(' --> '), subtitle['text'] ].join('\n')