summaryrefslogtreecommitdiff
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-06 23:30:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-06 23:30:34 +0100
commita044a183a3fb90b20a8deaa3ea1158510bcdd420 (patch)
tree64283430c858315ae9ec426de0737ddc516c90fd /libavutil/log.c
parentd6838309fe098fe2bb14cb5138ceab25bfbd6981 (diff)
avutil/log: skip IO calls on empty strings
These occur when no context is set for example, thus they are common Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index 0eb09b213d..a7eb34c3d2 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -103,6 +103,9 @@ static int use_color = -1;
static void colored_fputs(int level, const char *str)
{
+ if (!*str)
+ return;
+
if (use_color < 0) {
#if HAVE_SETCONSOLETEXTATTRIBUTE
CONSOLE_SCREEN_BUFFER_INFO con_info;