ffmpeg: explicitly set stdin to null

This commit is contained in:
Alex Gleason 2025-02-28 10:20:47 -06:00
parent aeaa60df45
commit 7ecca587a9
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -30,7 +30,7 @@ export function ffmpeg(input: URL | ReadableStream<Uint8Array>, flags: FFmpegFla
// Spawn the FFmpeg process
const command = new Deno.Command('ffmpeg', {
args,
stdin: input instanceof ReadableStream ? 'piped' : undefined,
stdin: input instanceof ReadableStream ? 'piped' : 'null',
stdout: 'piped',
});