projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762357e
)
only add prefix after \n
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 3 Nov 2003 13:58:26 +0000
(13:58 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 3 Nov 2003 13:58:26 +0000
(13:58 +0000)
Originally committed as revision 2471 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
f5a9543
..
ccb95f9
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-780,10
+780,15
@@
static int av_log_level = AV_LOG_DEBUG;
static void av_log_default_callback(AVCodecContext* avctx, int level, const char* fmt, va_list vl)
{
+ static int print_prefix=1;
+
if(level>av_log_level)
return;
- if(avctx)
+ if(avctx
&& print_prefix
)
fprintf(stderr, "[%s @ %p]", avctx->codec->name, avctx);
+
+ print_prefix= (int)strstr(fmt, "\n");
+
vfprintf(stderr, fmt, vl);
}