OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avutil/log: skip IO calls on empty strings
[android-x86/external-ffmpeg.git]
/
libavutil
/
log.c
diff --git
a/libavutil/log.c
b/libavutil/log.c
index
56ef53b
..
fa65b9f
100644
(file)
--- a/
libavutil/log.c
+++ b/
libavutil/log.c
@@
-109,6
+109,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;