chore: restore original VideoFrame formatting in streamingDecoder.ts

Biome had reformatted two pre-existing VideoFrame constructor calls from
single-line to multi-line style when --write was run on the file. Restore
them to match main so the diff only reflects our intentional refactoring.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Davide Mendolia
2026-05-24 12:08:55 +02:00
co-authored by Claude Sonnet 4.6
parent c0b929d4b2
commit 3a2f90722c
+2 -6
View File
@@ -503,9 +503,7 @@ export class StreamingVideoDecoder {
segment.startSec + (segmentFrameIndex / targetFrameRate) * segment.speed;
if (sourceTimeSec >= segment.endSec - EPSILON_SEC) return false;
const clone = new VideoFrame(heldFrame, {
timestamp: heldFrame.timestamp,
});
const clone = new VideoFrame(heldFrame, { timestamp: heldFrame.timestamp });
await onFrame(clone, exportFrameIndex * frameDurationUs, sourceTimeSec * 1000);
segmentFrameIndex++;
exportFrameIndex++;
@@ -577,9 +575,7 @@ export class StreamingVideoDecoder {
break;
}
const clone = new VideoFrame(heldFrame, {
timestamp: heldFrame.timestamp,
});
const clone = new VideoFrame(heldFrame, { timestamp: heldFrame.timestamp });
await onFrame(clone, exportFrameIndex * frameDurationUs, sourceTimeSec * 1000);
segmentFrameIndex++;
exportFrameIndex++;