From a057552212fe72983fc96c9f89975c7e3f5b1f04 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 26 Apr 2013 23:41:29 +0200 Subject: [PATCH] avutil/log: dont count&print repeats for empty strings Signed-off-by: Michael Niedermayer --- libavutil/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/log.c b/libavutil/log.c index f4d0b88d5e..f29345b97a 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);