mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/remux: lower percentage bound
This commit is contained in:
parent
7d10ab765e
commit
9d7512d6e5
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue