OSDN Git Service

ffmpeg: fix negative verbosity.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Apr 2011 11:04:33 +0000 (13:04 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 10 May 2011 05:17:21 +0000 (07:17 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
ffmpeg.c

index e43d438..db65c7a 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1378,7 +1378,7 @@ static void print_report(AVFormatContext **output_files,
     if (ti1 < 0.01)
         ti1 = 0.01;
 
-    if (verbose || is_last_report) {
+    if (verbose > 0 || is_last_report) {
         bitrate = (double)(total_size * 8) / ti1 / 1000.0;
 
         snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
@@ -4047,7 +4047,7 @@ static void opt_target(const char *arg)
                 }
             }
         }
-        if(verbose && norm != UNKNOWN)
+        if(verbose > 0 && norm != UNKNOWN)
             fprintf(stderr, "Assuming %s for target.\n", norm == PAL ? "PAL" : "NTSC");
     }