Expand packet.clone(), make conversion start timestamp default to the input's start timestamp

This commit is contained in:
Vanilagy
2026-01-19 14:04:20 +01:00
parent d23b0369f3
commit dbaaea255c
6 changed files with 72 additions and 42 deletions
@@ -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 = () => {