From d63abfc7eb7db5eb36b325198fbb6ceaf8778685 Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Wed, 14 Jul 2010 19:37:52 +0000 Subject: Add WMA Pro to the main build. WMA Pro now plays on target and decodes in 151% realtime in a 320kbps sample on a sansa e200. Lots of cleanup still need to be done, and optimisations should start soon too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27417 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/libavutil/log.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apps/codecs/libwmapro/libavutil/log.c') 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 @@ #include "avutil.h" #include "log.h" +/* disable sprintf functions */ +#define snprintf(...) +#define vsnprintf snprintf #if LIBAVUTIL_VERSION_MAJOR > 50 static #endif int av_log_level = AV_LOG_INFO; -void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) +void av_log_default_callback(void* ptr, int level) { static int print_prefix=1; static int count; @@ -61,9 +64,9 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) strcpy(prev, line); } -static void (*av_log_callback)(void*, int, const char*, va_list) = av_log_default_callback; +static void (*av_log_callback)(void*, int = av_log_default_callback; -void av_log(void* avcl, int level, const char *fmt, ...) +void av_log(void* avcl, int level) { va_list vl; va_start(vl, fmt); -- cgit v1.2.3