Commit a0575522 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/log: dont count&print repeats for empty strings

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9a0aa8d0
...@@ -222,7 +222,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) ...@@ -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; is_atty = isatty(2) ? 1 : -1;
#endif #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++; count++;
if (is_atty == 1) if (is_atty == 1)
fprintf(stderr, " Last message repeated %d times\r", count); fprintf(stderr, " Last message repeated %d times\r", count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment