From: John Koleszar Date: Fri, 22 Oct 2010 03:35:12 +0000 (-0700) Subject: vpxdec: replace --quiet with --verbose X-Git-Tag: v0.9.5~22^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b578ea6c4c45cc9aa850932878860c8eae948ed;p=libvpx vpxdec: replace --quiet with --verbose Be quiet by default, to play nicer with scripts. Change-Id: I68f6c88411fd5487566f268fb73b4e55ae64410c --- diff --git a/vpxdec.c b/vpxdec.c index 2d96b28b6..a13bf44ad 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -71,8 +71,8 @@ static const arg_def_t usey4marg = ARG_DEF("y", "y4m", 0, "Output file is YUV4MPEG2"); static const arg_def_t threadsarg = ARG_DEF("t", "threads", 1, "Max threads to use"); -static const arg_def_t quietarg = ARG_DEF("q", "quiet", 0, - "Suppress version string"); +static const arg_def_t verbosearg = ARG_DEF("v", "verbose", 0, + "Show version string"); #if CONFIG_MD5 static const arg_def_t md5arg = ARG_DEF(NULL, "md5", 0, @@ -82,7 +82,7 @@ static const arg_def_t *all_args[] = { &codecarg, &prefixarg, &use_yv12, &use_i420, &flipuvarg, &noblitarg, &progressarg, &limitarg, &postprocarg, &summaryarg, &outputfile, - &usey4marg, &threadsarg, &quietarg, + &usey4marg, &threadsarg, &verbosearg, #if CONFIG_MD5 &md5arg, #endif @@ -595,7 +595,7 @@ int main(int argc, const char **argv_) size_t buf_sz = 0, buf_alloc_sz = 0; FILE *infile; int frame_in = 0, frame_out = 0, flipuv = 0, noblit = 0, do_md5 = 0, progress = 0; - int stop_after = 0, postproc = 0, summary = 0, quiet = 0; + int stop_after = 0, postproc = 0, summary = 0, quiet = 1; vpx_codec_iface_t *iface = NULL; unsigned int fourcc; unsigned long dx_time = 0; @@ -663,8 +663,8 @@ int main(int argc, const char **argv_) summary = 1; else if (arg_match(&arg, &threadsarg, argi)) cfg.threads = arg_parse_uint(&arg); - else if (arg_match(&arg, &quietarg, argi)) - quiet = 1; + else if (arg_match(&arg, &verbosearg, argi)) + quiet = 0; #if CONFIG_VP8_DECODER else if (arg_match(&arg, &addnoise_level, argi))