avtools: parse loglevel before all the other options.
[ffmpeg.git] / ffmpeg.c
index 2a921d0..86b73b2 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4357,6 +4357,7 @@ int main(int argc, char **argv)
     int64_t ti;
 
     av_log_set_flags(AV_LOG_SKIP_REPEATED);
+    parse_loglevel(argc, argv, options);
 
     avcodec_register_all();
 #if CONFIG_AVDEVICE