From ffef9a1485616c3886f76a5423e8021428b57e91 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 30 Nov 2012 16:25:20 -0800 Subject: [PATCH] Round syllable durations to centiseconds when splitting syllables --- aegisub/src/ass_karaoke.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/ass_karaoke.cpp b/aegisub/src/ass_karaoke.cpp index c89ba3590..b67cb47b5 100644 --- a/aegisub/src/ass_karaoke.cpp +++ b/aegisub/src/ass_karaoke.cpp @@ -202,7 +202,7 @@ void AssKaraoke::AddSplit(size_t syl_idx, size_t pos) { syl.duration = 0; } else { - new_syl.duration = syl.duration * new_syl.text.size() / (syl.text.size() + new_syl.text.size()); + new_syl.duration = (syl.duration * new_syl.text.size() / (syl.text.size() + new_syl.text.size()) + 5) / 10 * 10; syl.duration -= new_syl.duration; }