avconv: always print stats with AV_LOG_INFO
authorAnton Khirnov <anton@khirnov.net>
Sun, 9 Oct 2011 14:32:54 +0000 (16:32 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 9 Oct 2011 15:15:18 +0000 (17:15 +0200)
It's now possible to disable printing stats during encoding with
-nostats, so there's no reason to print them differently depending on
whether it's last report or not.

avconv.c

index f1d23ed..9b69e1d 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -1407,7 +1407,7 @@ static void print_report(OutputFile *output_files,
         snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " dup=%d drop=%d",
                 nb_frames_dup, nb_frames_drop);
 
         snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " dup=%d drop=%d",
                 nb_frames_dup, nb_frames_drop);
 
-    av_log(NULL, is_last_report ? AV_LOG_WARNING : AV_LOG_INFO, "%s    \r", buf);
+    av_log(NULL, AV_LOG_INFO, "%s    \r", buf);
 
     fflush(stderr);
 
 
     fflush(stderr);