diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-30 02:12:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-30 02:12:53 +0100 |
commit | 4aa9c91508203fdcaa687abff2d8d4ae46d4cde6 (patch) | |
tree | 720510e61e5045d8775eff5219c8e82799ebd029 /cmdutils.c | |
parent | e80aa47abf74b9dda336d3e156fb49402093ec44 (diff) | |
parent | de40905f55cdd668b50a143f8e30936d22a09a37 (diff) | |
download | ffmpeg-4aa9c91508203fdcaa687abff2d8d4ae46d4cde6.tar.gz |
Merge remote-tracking branch 'cehoyos/master'
* cehoyos/master:
Fix condition for transparency warning in xsub encoder.
Allow hiding the banner.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 6 |
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); |