Commit 17ee7b55 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg:Fix negative verbositiy

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9c3ad1af
...@@ -1441,7 +1441,7 @@ static void print_report(AVFormatContext **output_files, ...@@ -1441,7 +1441,7 @@ static void print_report(AVFormatContext **output_files,
if (ti1 < 0.01) if (ti1 < 0.01)
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; bitrate = (double)(total_size * 8) / ti1 / 1000.0;
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
...@@ -4089,7 +4089,7 @@ static void opt_target(const char *arg) ...@@ -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"); fprintf(stderr, "Assuming %s for target.\n", norm == PAL ? "PAL" : "NTSC");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment