From 5d0f690d0f747393b00d4360d13f57de788f9557 Mon Sep 17 00:00:00 2001 From: lamaland <42850368+lamaland@users.noreply.github.com> Date: Thu, 31 Dec 2020 10:41:28 +0100 Subject: [PATCH] fix(progress): better mp3 progress support fixes https://github.com/ffmpegwasm/ffmpeg.wasm/issues/112 --- src/utils/parseProgress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/parseProgress.js b/src/utils/parseProgress.js index 93fdd8a..1867d86 100644 --- a/src/utils/parseProgress.js +++ b/src/utils/parseProgress.js @@ -13,7 +13,7 @@ module.exports = (message, progress) => { if (duration === 0 || duration > d) { duration = d; } - } else if (message.startsWith('frame')) { + } else if (message.startsWith('frame') || message.startsWith('size')) { const ts = message.split('time=')[1].split(' ')[0]; const t = ts2sec(ts); progress({ ratio: t / duration });