aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@minerva.hye>2013-12-28 05:18:39 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-12-29 22:57:20 +0100
commitb4c89c90ffc723c38282fbf061bf65da67e011b2 (patch)
treed8942382675abed8b3e01774c4137444d19e6a14 /cmdutils.c
parent9ed640015bf321b20b1e8ab8767be5b4ebcc3d0d (diff)
downloadffmpeg-b4c89c90ffc723c38282fbf061bf65da67e011b2.tar.gz
Allow hiding the banner.
Fixes ticket #3246.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index fc4b42440e..dc9bd2cc00 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -66,6 +66,7 @@ AVDictionary *swr_opts;
AVDictionary *format_opts, *codec_opts, *resample_opts;
static FILE *report_file;
+int hide_banner = 0;
void init_opts(void)
{
@@ -491,6 +492,9 @@ void parse_loglevel(int argc, char **argv, const OptionDef *options)
fflush(report_file);
}
}
+ idx = locate_option(argc, argv, options, "hide_banner");
+ if (idx)
+ hide_banner = 1;
}
static const AVOption *opt_find(void *obj, const char *name, const char *unit,
@@ -1083,7 +1087,7 @@ static void print_buildconf(int flags, int level)
void show_banner(int argc, char **argv, const OptionDef *options)
{
int idx = locate_option(argc, argv, options, "version");
- if (idx)
+ if (hide_banner || idx)
return;
print_program_info (INDENT|SHOW_COPYRIGHT, AV_LOG_INFO);