Skip to content

Commit

Permalink
Merge pull request #467 from sylvain-reynaud/fix-image-progress
Browse files Browse the repository at this point in the history
fix(#466): image duration is skipped
  • Loading branch information
jeromewu authored Jul 26, 2023
2 parents 3b3d8e8 + 75dee8a commit 28adb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createFFmpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = (_options = {}) => {
const ts = message.split(', ')[0].split(': ')[1];
const d = ts2sec(ts);
prog({ duration: d, ratio });
if (duration === 0 || duration > d) {
if ((duration === 0 || duration > d) && d >= 1) {
duration = d;
readFrames = true;
}
Expand Down

0 comments on commit 28adb08

Please sign in to comment.