web/remux: lower percentage bound

This commit is contained in:
dumbmoron 2024-08-17 13:45:18 +00:00
parent 7d10ab765e
commit 9d7512d6e5
No known key found for this signature in database

View file

@ -17,7 +17,7 @@
$: {
if (totalDuration && processedDuration) {
const percentage = Math.min(100, (processedDuration / totalDuration) * 100).toFixed(2);
const percentage = Math.max(0, Math.min(100, (processedDuration / totalDuration) * 100)).toFixed(2);
progress = `${percentage}%, ${speed}x`;
} else if (processing) {
progress = 'getting video metadata';