diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-06 23:30:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-16 00:35:12 +0100 |
commit | 5dde8ba59e90facf3f22a99cf0ea86569758e576 (patch) | |
tree | 1590ba19161d4bf0ffe1a6fccbd77b4272308757 /libavutil | |
parent | b841869477c951840f3304f57470baee6e13e474 (diff) | |
download | ffmpeg-5dde8ba59e90facf3f22a99cf0ea86569758e576.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/log.c b/libavutil/log.c index 49dd4d1897..bdb4be0f91 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -101,6 +101,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; |