diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-03 19:33:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-03 19:38:13 +0100 |
commit | 9af8179cdb5eb05e9b29b0a4d0c363d22b674e95 (patch) | |
tree | 65f645bfc25e9d83762efbd6b2f5ba2984ba49ee /ffmpeg.c | |
parent | f2cb993139415bd5cadf70d01a9a32a97974df68 (diff) | |
download | ffmpeg-9af8179cdb5eb05e9b29b0a4d0c363d22b674e95.tar.gz |
ffmpeg: fix -stats -v 0
Fixes Ticket1687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1269,7 +1269,10 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti av_bprintf(&buf_script, "drop_frames=%d\n", nb_frames_drop); if (print_stats || is_last_report) { - av_log(NULL, AV_LOG_INFO, "%s \r", buf); + if (print_stats==1 && AV_LOG_INFO > av_log_get_level()) { + fprintf(stderr, "%s \r", buf); + } else + av_log(NULL, AV_LOG_INFO, "%s \r", buf); fflush(stderr); } |