diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-05-18 18:46:37 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-05-18 18:46:37 +0200 |
commit | c23d0c3a348fdc64a1cd6f71200b9d0fe0f6159c (patch) | |
tree | 4d933700efc9ed046e3e20e7c568576f55c991ef | |
parent | b76448d99f7c994787b8f6385d50bb62d3ba8217 (diff) | |
download | nihav-encoder-c23d0c3a348fdc64a1cd6f71200b9d0fe0f6159c.tar.gz |
recognize /dev/null as null muxer output by default
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |