srt timestamps must include milliseconds, fixes #2550

This commit is contained in:
j 2014-11-10 11:49:00 +01:00
parent bb931c006f
commit 50b344321e

View file

@ -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')