diff options
Diffstat (limited to 'apps/codecs/libwmapro/libavutil/log.c')
-rw-r--r-- | apps/codecs/libwmapro/libavutil/log.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/codecs/libwmapro/libavutil/log.c b/apps/codecs/libwmapro/libavutil/log.c index 6cbe0da8b8..f93a0d6677 100644 --- a/apps/codecs/libwmapro/libavutil/log.c +++ b/apps/codecs/libwmapro/libavutil/log.c | |||
@@ -26,13 +26,16 @@ | |||
26 | 26 | ||
27 | #include "avutil.h" | 27 | #include "avutil.h" |
28 | #include "log.h" | 28 | #include "log.h" |
29 | /* disable sprintf functions */ | ||
30 | #define snprintf(...) | ||
31 | #define vsnprintf snprintf | ||
29 | 32 | ||
30 | #if LIBAVUTIL_VERSION_MAJOR > 50 | 33 | #if LIBAVUTIL_VERSION_MAJOR > 50 |
31 | static | 34 | static |
32 | #endif | 35 | #endif |
33 | int av_log_level = AV_LOG_INFO; | 36 | int av_log_level = AV_LOG_INFO; |
34 | 37 | ||
35 | void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) | 38 | void av_log_default_callback(void* ptr, int level) |
36 | { | 39 | { |
37 | static int print_prefix=1; | 40 | static int print_prefix=1; |
38 | static int count; | 41 | static int count; |
@@ -61,9 +64,9 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) | |||
61 | strcpy(prev, line); | 64 | strcpy(prev, line); |
62 | } | 65 | } |
63 | 66 | ||
64 | static void (*av_log_callback)(void*, int, const char*, va_list) = av_log_default_callback; | 67 | static void (*av_log_callback)(void*, int = av_log_default_callback; |
65 | 68 | ||
66 | void av_log(void* avcl, int level, const char *fmt, ...) | 69 | void av_log(void* avcl, int level) |
67 | { | 70 | { |
68 | va_list vl; | 71 | va_list vl; |
69 | va_start(vl, fmt); | 72 | va_start(vl, fmt); |