Skip to content

Commit a5f68e8

Browse files
committed
style(engine): collapse the single-pass ffmpeg call the formatter wants on one line
1 parent 81cb003 commit a5f68e8

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

‎packages/engine/src/services/videoFrameExtractor.ts‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,20 +1462,17 @@ async function extractVideoFramesRangeUnredacted(
14621462
})
14631463
: inExtractionSlot(
14641464
async () =>
1465-
runFfmpeg(
1466-
[...hwaccel, ...args, ...filterArgsFor(startTime), ...encodeArgs],
1467-
{
1468-
...runOptions,
1469-
onStderr: framesWrittenReader(options.onProgress),
1470-
timeout: stallTimeoutMs(
1471-
ffmpegProcessTimeout,
1472-
options.finalFrameOnly
1473-
? startTime
1474-
: await leadInSecondsUnlessAborted(videoPath, startTime, signal),
1475-
metadata.fps,
1476-
),
1477-
},
1478-
),
1465+
runFfmpeg([...hwaccel, ...args, ...filterArgsFor(startTime), ...encodeArgs], {
1466+
...runOptions,
1467+
onStderr: framesWrittenReader(options.onProgress),
1468+
timeout: stallTimeoutMs(
1469+
ffmpegProcessTimeout,
1470+
options.finalFrameOnly
1471+
? startTime
1472+
: await leadInSecondsUnlessAborted(videoPath, startTime, signal),
1473+
metadata.fps,
1474+
),
1475+
}),
14791476
signal,
14801477
);
14811478
options.onProgress?.({

0 commit comments

Comments
 (0)