]> git.nihav.org Git - nihav-encoder.git/commitdiff
introduce --iformat as an alias for --input-format master
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 30 Jun 2024 12:11:40 +0000 (14:11 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 30 Jun 2024 12:11:40 +0000 (14:11 +0200)
src/main.rs

index ee6ba25f478e53a0877c76f8c7ae2ac38bd576c5..6878a878e28a54368d7ab921b2a548df15ca1423 100644 (file)
@@ -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);