summaryrefslogtreecommitdiff
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-26 23:41:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-26 23:41:29 +0200
commita057552212fe72983fc96c9f89975c7e3f5b1f04 (patch)
tree72b8b96c0177bb193f7ffc5c9176e85a25f0c8dd /libavutil/log.c
parent9a0aa8d02a313e815234bd854f9225a97ac996f7 (diff)
avutil/log: dont count&print repeats for empty strings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c2
1 files changed, 1 insertions, 1 deletions
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);