Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-07 02:30:34 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-24 04:05:47 +0400
commit172f92976752618a7d1b6636bf2d04cbdbd65790 (patch)
treee583c20ad54b0752af4332d1f866dd622eea6038 /libavutil
parent66a9edfcf677f2673b5163f8008bdc7d0454074c (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> (cherry picked from commit a044a183a3fb90b20a8deaa3ea1158510bcdd420) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index a4111f6274..7cd7ce7691 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;