summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/libavutil
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwmapro/libavutil')
-rw-r--r--apps/codecs/libwmapro/libavutil/internal.h10
-rw-r--r--apps/codecs/libwmapro/libavutil/log.c4
-rw-r--r--apps/codecs/libwmapro/libavutil/mathematics.c8
3 files changed, 11 insertions, 11 deletions
diff --git a/apps/codecs/libwmapro/libavutil/internal.h b/apps/codecs/libwmapro/libavutil/internal.h
index 2b8da1d..97087e4 100644
--- a/apps/codecs/libwmapro/libavutil/internal.h
+++ b/apps/codecs/libwmapro/libavutil/internal.h
@@ -33,7 +33,7 @@
#include <limits.h>
#include <stdint.h>
#include <stddef.h>
-#include <assert.h>
+//#include <assert.h>
//#include "config.h"
#include "attributes.h"
//#include "timer.h"
@@ -142,8 +142,8 @@
#endif
/* avoid usage of dangerous/inappropriate system functions */
-#undef malloc
-#define malloc please_use_av_malloc
+//#undef malloc
+//#define malloc please_use_av_malloc
#undef free
#define free please_use_av_free
#undef realloc
@@ -163,8 +163,8 @@
#undef exit
#define exit exit_is_forbidden
#ifndef LIBAVFORMAT_BUILD
-#undef printf
-#define printf please_use_av_log_instead_of_printf
+//#undef printf
+//#define printf please_use_av_log_instead_of_printf
#undef fprintf
#define fprintf please_use_av_log_instead_of_fprintf
#undef puts
diff --git a/apps/codecs/libwmapro/libavutil/log.c b/apps/codecs/libwmapro/libavutil/log.c
index 166e724..6cbe0da 100644
--- a/apps/codecs/libwmapro/libavutil/log.c
+++ b/apps/codecs/libwmapro/libavutil/log.c
@@ -54,10 +54,10 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
return;
}
if(count>0){
- fprintf(stderr, " Last message repeated %d times\n", count);
+ //fprintf(stderr, " Last message repeated %d times\n", count);
count=0;
}
- fputs(line, stderr);
+ //fputs(line, stderr);
strcpy(prev, line);
}
diff --git a/apps/codecs/libwmapro/libavutil/mathematics.c b/apps/codecs/libwmapro/libavutil/mathematics.c
index 04f3e87..7af0104 100644
--- a/apps/codecs/libwmapro/libavutil/mathematics.c
+++ b/apps/codecs/libwmapro/libavutil/mathematics.c
@@ -23,7 +23,7 @@
* miscellaneous math routines and tables
*/
-#include <assert.h>
+//#include <assert.h>
#include <stdint.h>
#include <limits.h>
#include "mathematics.h"
@@ -76,9 +76,9 @@ int64_t av_gcd(int64_t a, int64_t b){
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
int64_t r=0;
- assert(c > 0);
- assert(b >=0);
- assert(rnd >=0 && rnd<=5 && rnd!=4);
+ //assert(c > 0);
+ //assert(b >=0);
+ //assert(rnd >=0 && rnd<=5 && rnd!=4);
if(a<0 && a != INT64_MIN) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));