mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-24 08:00:31 +00:00
style: format ffprobe files to pass CI format check
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
cf5e504286
commit
f9e1a6668d
@@ -1000,9 +1000,7 @@ describe("analyzeKeyframeIntervals — single-keyframe videos", () => {
|
||||
});
|
||||
|
||||
it("returns non-problematic for zero keyframes (still image)", async () => {
|
||||
const { spawn } = createSpawnSpy([
|
||||
{ kind: "exit", code: 0, stdout: "\n" },
|
||||
]);
|
||||
const { spawn } = createSpawnSpy([{ kind: "exit", code: 0, stdout: "\n" }]);
|
||||
vi.resetModules();
|
||||
vi.doMock("child_process", () => ({ spawn }));
|
||||
|
||||
|
||||
@@ -1102,12 +1102,7 @@ async function probeStreamDurationSeconds(filePath: string): Promise<number> {
|
||||
// Fall through to format-level probe.
|
||||
}
|
||||
try {
|
||||
const out = await runFfprobe(filePath, [
|
||||
"-show_entries",
|
||||
"format=duration",
|
||||
"-of",
|
||||
"csv=p=0",
|
||||
]);
|
||||
const out = await runFfprobe(filePath, ["-show_entries", "format=duration", "-of", "csv=p=0"]);
|
||||
const d = parseFloat(out.trim());
|
||||
return Number.isFinite(d) && d > 0 ? d : 0;
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user