From: Kostya Shishkov Date: Sun, 30 Jun 2024 12:11:40 +0000 (+0200) Subject: introduce --iformat as an alias for --input-format X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=HEAD;p=nihav-encoder.git introduce --iformat as an alias for --input-format --- diff --git a/src/main.rs b/src/main.rs index ee6ba25..6878a87 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1206,6 +1206,10 @@ fn main() { println!("invalid output stream option syntax"); return; } + } else if args[arg_idx].starts_with("--iformat") { + let id = parse_id!(&args[arg_idx][9..], "input format", transcoder.input_fmt.len()); + next_arg!(args, arg_idx); + transcoder.input_fmt[id] = Some(args[arg_idx].clone()); } else if args[arg_idx].starts_with("--input-format") { let id = parse_id!(&args[arg_idx][14..], "input format", transcoder.input_fmt.len()); next_arg!(args, arg_idx);