From 5d3b4c0aca31b59bcf15973e3bcdfbec8f2df1af Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 30 Jun 2024 14:11:40 +0200 Subject: [PATCH] introduce --iformat as an alias for --input-format --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5