Modify the first syllable when normalizing karaoke syllable lengths

This commit is contained in:
Thomas Goyne 2012-09-24 18:46:15 -07:00
parent 85f2774033
commit 7433b814a7

View file

@ -151,9 +151,9 @@ void AssKaraoke::SetLine(AssDialogue *line, bool auto_split, bool normalize) {
syls[i].start_time = start_time + scale_factor * (syls[i].start_time - start_time); syls[i].start_time = start_time + scale_factor * (syls[i].start_time - start_time);
} }
for (int i = size() - 1; i > 0; --i) { for (int i = size(); i > 0; --i) {
syls[i].duration = end_time - syls[i].start_time; syls[i - 1].duration = end_time - syls[i - 1].start_time;
end_time = syls[i].start_time; end_time = syls[i - 1].start_time;
} }
} }
} }