mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Expand packet.clone(), make conversion start timestamp default to the input's start timestamp
This commit is contained in:
@@ -75,7 +75,7 @@ const compressFile = async (resource: File | string) => {
|
||||
let progress = 0;
|
||||
currentConversion.onProgress = newProgress => progress = newProgress;
|
||||
|
||||
const fileDuration = await input.computeDuration();
|
||||
const fileDuration = (await input.computeDuration()) - (await input.getFirstTimestamp());
|
||||
const startTime = performance.now();
|
||||
|
||||
const updateProgress = () => {
|
||||
|
||||
Reference in New Issue
Block a user