X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.c;h=dc9bd2cc00ddf7375415613a937665fd241320fd;hb=cd7037dd7ac14823619cf1649922b0ef31310291;hp=fc4b42440eea1ba2e679627a2d55fcb26366bf7d;hpb=6fc9f5e0ff77f827ae0982099b8fcc683bf0063c;p=ffmpeg diff --git a/cmdutils.c b/cmdutils.c index fc4b42440ee..dc9bd2cc00d 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);