mirror of
https://github.com/siddharthvaddem/openscreen.git
synced 2026-11-04 23:32:16 +08:00
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:
co-authored by
Claude Sonnet 4.6
parent
c0b929d4b2
commit
3a2f90722c
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user