avtools: parse loglevel before all the other options.

This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.
This commit is contained in:
Anton Khirnov
2011-09-26 08:15:37 +02:00
parent 4ca59d1948
commit 182cbe433a
7 changed files with 45 additions and 0 deletions

View File

@ -4019,6 +4019,7 @@ int main(int argc, char **argv)
reset_options(&o);
av_log_set_flags(AV_LOG_SKIP_REPEATED);
parse_loglevel(argc, argv, options);
avcodec_register_all();
#if CONFIG_AVDEVICE