Commit b8b56a17 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Fix crash if --muxer is not set

parent fac1a1af
......@@ -180,6 +180,9 @@ void parse(const int argc, char *const *const argv,
if (!cli_settings->inputfile)
usage(argv[0], "Input file (-i/--input) is required");
if (strcmp(cli_settings->muxer,"null") && !cli_settings->outputfile)
if ((!cli_settings->muxer || strcmp(cli_settings->muxer, "null")) &&
!cli_settings->outputfile)
{
usage(argv[0], "Output file (-o/--output) is required");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment