Browse code

ffmpeg:Fix negative verbositiy Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/04/18 20:04:33
Showing 1 changed files
... ...
@@ -1441,7 +1441,7 @@ static void print_report(AVFormatContext **output_files,
1441 1441
     if (ti1 < 0.01)
1442 1442
         ti1 = 0.01;
1443 1443
 
1444
-    if (verbose || is_last_report) {
1444
+    if (verbose > 0 || is_last_report) {
1445 1445
         bitrate = (double)(total_size * 8) / ti1 / 1000.0;
1446 1446
 
1447 1447
         snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
... ...
@@ -4089,7 +4089,7 @@ static void opt_target(const char *arg)
4089 4089
                 }
4090 4090
             }
4091 4091
         }
4092
-        if(verbose && norm != UNKNOWN)
4092
+        if(verbose > 0 && norm != UNKNOWN)
4093 4093
             fprintf(stderr, "Assuming %s for target.\n", norm == PAL ? "PAL" : "NTSC");
4094 4094
     }
4095 4095