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);