Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/rust/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,17 @@ impl OptionsExt for Options {
self.set_input_format_type(InFormat::Asf);
} else if args.wtv {
self.set_input_format_type(InFormat::Wtv);
} else if args.mp4 {
self.set_input_format_type(InFormat::Mp4);
} else if args.mkv {
self.set_input_format_type(InFormat::Mkv);
} else {
fatal!(
cause = ExitCause::MalformedParameter;
"Unknown input file format: {}\n", args.input.unwrap()
"Unknown input file format: {}\n",
args.input
.map(|i| i.to_string())
.unwrap_or_else(|| "unknown".to_string())
);
}
}
Expand Down
Loading