comparison utils.c @ 1823:a660ef952580 libavcodec

(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
author michael
date Sun, 22 Feb 2004 00:31:19 +0000
parents 95612d423fde
children cd2d7fcfab7a
comparison
equal deleted inserted replaced
1822:7366bb5c363f 1823:a660ef952580
830 { 830 {
831 static int print_prefix=1; 831 static int print_prefix=1;
832 832
833 if(level>av_log_level) 833 if(level>av_log_level)
834 return; 834 return;
835 #undef fprintf
835 if(avctx && print_prefix) 836 if(avctx && print_prefix)
836 fprintf(stderr, "[%s @ %p]", avctx->codec ? avctx->codec->name : "?", avctx); 837 fprintf(stderr, "[%s @ %p]", avctx->codec ? avctx->codec->name : "?", avctx);
838 #define fprintf please_use_av_log
837 839
838 print_prefix= strstr(fmt, "\n") != NULL; 840 print_prefix= strstr(fmt, "\n") != NULL;
839 841
840 vfprintf(stderr, fmt, vl); 842 vfprintf(stderr, fmt, vl);
841 } 843 }