From c23d0c3a348fdc64a1cd6f71200b9d0fe0f6159c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 18 May 2023 18:46:37 +0200 Subject: [PATCH] recognize /dev/null as null muxer output by default --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1e77521..3c39857 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1110,6 +1110,8 @@ println!("stream {} - {} {}", i, s, info.get_name()); let output_fmt = if let Some(ref str) = transcoder.output_fmt { str + } else if transcoder.output_name.as_str() == "/dev/null" { + "null" } else if let Some(str) = detect::detect_format_by_name(transcoder.output_name.as_str()) { str } else { -- 2.39.5