summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-02-22 00:31:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-22 00:31:19 +0000
commitd705e4a6bb6d052f4054886511bf0adb518d72c4 (patch)
tree71dc66fde545184d9bc6bd450b640a89becb0746 /libavcodec/utils.c
parent2092bd7531f30b07f1188b2a28cf67a42d4bd8e4 (diff)
(f)printf() is disallowed in libavcodec, compilation will fail now if its used, except that codecs which where added after the printf->av_log change which did ignore av_log() and used prinf are now silent and wont print anything, they should be changed to use av_log, i could do that, but its better if the orginal developer decides which AV_LOG level each message should get
Originally committed as revision 2806 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e49ddd07f0..eb4b19eedc 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -832,8 +832,10 @@ static void av_log_default_callback(AVCodecContext* avctx, int level, const char
if(level>av_log_level)
return;
+#undef fprintf
if(avctx && print_prefix)
fprintf(stderr, "[%s @ %p]", avctx->codec ? avctx->codec->name : "?", avctx);
+#define fprintf please_use_av_log
print_prefix= strstr(fmt, "\n") != NULL;