OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d683830
)
avutil/log: skip IO calls on empty strings
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 6 Dec 2013 22:30:34 +0000
(23:30 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 6 Dec 2013 22:30:34 +0000
(23:30 +0100)
These occur when no context is set for example, thus they are common
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/log.c
patch
|
blob
|
history
diff --git
a/libavutil/log.c
b/libavutil/log.c
index
0eb09b2
..
a7eb34c
100644
(file)
--- 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;