diff --git a/libavutil/log.c b/libavutil/log.c index 8b2dc6f6d2..4fd503d0de 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -28,7 +28,7 @@ int av_log_level = AV_LOG_INFO; -static void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) +void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) { static int print_prefix=1; AVClass* avc= ptr ? *(AVClass**)ptr : NULL; diff --git a/libavutil/log.h b/libavutil/log.h index 0ff1f9fcff..3a08c802b9 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -55,6 +55,7 @@ extern void av_vlog(void*, int level, const char *fmt, va_list); extern int av_log_get_level(void); extern void av_log_set_level(int); extern void av_log_set_callback(void (*)(void*, int, const char*, va_list)); +extern void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); #else extern void (*av_vlog)(void*, int, const char*, va_list); #endif