[FFmpeg-cvslog] avutil/log: dont count&print repeats for empty strings
Michael Niedermayer
git at videolan.org
Fri Apr 26 23:49:00 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 26 23:41:29 2013 +0200| [a057552212fe72983fc96c9f89975c7e3f5b1f04] | committer: Michael Niedermayer
avutil/log: dont count&print repeats for empty strings
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a057552212fe72983fc96c9f89975c7e3f5b1f04
---
libavutil/log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/log.c b/libavutil/log.c
index f4d0b88..f29345b 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -222,7 +222,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
is_atty = isatty(2) ? 1 : -1;
#endif
- if (print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strcmp(line, prev)){
+ if (print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strcmp(line, prev) && *line){
count++;
if (is_atty == 1)
fprintf(stderr, " Last message repeated %d times\r", count);
More information about the ffmpeg-cvslog
mailing list