ffmpeg:Fix negative verbositiy
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Apr 2011 11:04:33 +0000 (13:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Apr 2011 23:54:58 +0000 (01:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 2b7cc86..06c8bed 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1441,7 +1441,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),
@@ -4089,7 +4089,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");
     }