Fixes Ticket1687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -1269,7 +1269,10 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti |
1269 | 1269 |
av_bprintf(&buf_script, "drop_frames=%d\n", nb_frames_drop); |
1270 | 1270 |
|
1271 | 1271 |
if (print_stats || is_last_report) { |
1272 |
- av_log(NULL, AV_LOG_INFO, "%s \r", buf); |
|
1272 |
+ if (print_stats==1 && AV_LOG_INFO > av_log_get_level()) { |
|
1273 |
+ fprintf(stderr, "%s \r", buf); |
|
1274 |
+ } else |
|
1275 |
+ av_log(NULL, AV_LOG_INFO, "%s \r", buf); |
|
1273 | 1276 |
|
1274 | 1277 |
fflush(stderr); |
1275 | 1278 |
} |