(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
This commit is contained in:
Michael Niedermayer
2004-02-22 00:31:19 +00:00
parent 2092bd7531
commit d705e4a6bb
8 changed files with 30 additions and 13 deletions

View File

@@ -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;