Mercurial > libavcodec.hg
comparison utils.c @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
author | diego |
---|---|
date | Thu, 22 Dec 2005 01:10:11 +0000 |
parents | c9f6a0946672 |
children | 9d7d2bb70fd6 |
comparison
equal
deleted
inserted
replaced
2978:403183bbb505 | 2979:bfabfdf9ce55 |
---|---|
1186 void avcodec_init(void) | 1186 void avcodec_init(void) |
1187 { | 1187 { |
1188 static int inited = 0; | 1188 static int inited = 0; |
1189 | 1189 |
1190 if (inited != 0) | 1190 if (inited != 0) |
1191 return; | 1191 return; |
1192 inited = 1; | 1192 inited = 1; |
1193 | 1193 |
1194 dsputil_static_init(); | 1194 dsputil_static_init(); |
1195 } | 1195 } |
1196 | 1196 |
1239 static void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) | 1239 static void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) |
1240 { | 1240 { |
1241 static int print_prefix=1; | 1241 static int print_prefix=1; |
1242 AVClass* avc= ptr ? *(AVClass**)ptr : NULL; | 1242 AVClass* avc= ptr ? *(AVClass**)ptr : NULL; |
1243 if(level>av_log_level) | 1243 if(level>av_log_level) |
1244 return; | 1244 return; |
1245 #undef fprintf | 1245 #undef fprintf |
1246 if(print_prefix && avc) { | 1246 if(print_prefix && avc) { |
1247 fprintf(stderr, "[%s @ %p]", avc->item_name(ptr), avc); | 1247 fprintf(stderr, "[%s @ %p]", avc->item_name(ptr), avc); |
1248 } | 1248 } |
1249 #define fprintf please_use_av_log | 1249 #define fprintf please_use_av_log |
1250 | 1250 |
1251 print_prefix= strstr(fmt, "\n") != NULL; | 1251 print_prefix= strstr(fmt, "\n") != NULL; |
1252 | 1252 |