ref: b8b56a17204cec07523776e4928721e56c134fcd
parent: fac1a1afaa275d7a54da5b08e43751f45d3e322e
author: Ronald S. Bultje <[email protected]>
date: Wed Nov 7 09:47:56 EST 2018
Fix crash if --muxer is not set
--- a/tools/dav1d_cli_parse.c
+++ b/tools/dav1d_cli_parse.c
@@ -180,6 +180,9 @@
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");
+ }
}