ffmpeg: fix negative verbosity.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Michael Niedermayer 2011-04-18 13:04:33 +02:00 committed by Anton Khirnov
parent 3372ec327b
commit d1991f51f3
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}