ref: fac1a1afaa275d7a54da5b08e43751f45d3e322e
parent: 55d512c7a44a889f1d5f2a143c299f9e31bde094
author: Tristan Laurent <t.laurent@ateme.com>
date: Wed Nov 7 12:56:41 EST 2018
Add 'null' muxer in help For benchmark purpose you do not need to process decoded frames. The null muxer allow you to do that.
--- a/tools/dav1d_cli_parse.c
+++ b/tools/dav1d_cli_parse.c
@@ -79,7 +79,7 @@
" --input/-i $file: input file\n"
" --output/-o $file: output file\n"
" --demuxer $name: force demuxer type (must be 'ivf'; default: detect from extension)\n"
- " --muxer $name: force muxer type ('md5', 'yuv' or 'yuv4mpeg2'; default: detect from extension)\n"
+ " --muxer $name: force muxer type ('md5', 'yuv', 'yuv4mpeg2' or 'null'; default: detect from extension)\n"
" --quiet/-q: disable status messages\n"
" --limit/-l $num: stop decoding after $num frames\n"
" --skip/-s $num: skip decoding of the first $num frames\n"
@@ -180,6 +180,6 @@
if (!cli_settings->inputfile)
usage(argv[0], "Input file (-i/--input) is required");
- if (!cli_settings->outputfile)
+ if (strcmp(cli_settings->muxer,"null") && !cli_settings->outputfile)
usage(argv[0], "Output file (-o/--output) is required");
}