Skip to content

Commit

Permalink
Merge pull request #273 from xsstomy/fixsubtitle
Browse files Browse the repository at this point in the history
fix: voice and images are nonsimultaneous.
  • Loading branch information
drawcall authored Sep 9, 2022
2 parents f1089a8 + 4adb6e0 commit 942d6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node/subtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class FFSubtitle extends FFNode {

forEach(list, text => {
// text += sign;
const time = (text.length / totalLength) * duration;
const time = ((text.length + 1) / totalLength) * duration;
const frames = start + time * fps;
this.textList.push({ start, frames, text, draw: false });
start = frames;
Expand Down

0 comments on commit 942d6ef

Please sign in to comment.