From 7205923d609fdc37265f3c202ab9eb3eea446fd1 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Thu, 10 Oct 2013 16:54:12 +0200 Subject: [PATCH] Replace gf_malloc with regular malloc in mp4 muxer It was used as a workaround for a bug that only existed in the GPAC repository for a few weeks back in 2010. There's no reason to keep it anymore. --- configure | 5 +---- output/mp4.c | 9 --------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/configure b/configure index 132e9e2a..bbf6721c 100755 --- a/configure +++ b/configure @@ -291,7 +291,7 @@ EXE="" # list of all preprocessor HAVE values we can define CONFIG_HAVE="MALLOC_H ALTIVEC ALTIVEC_H MMX ARMV6 ARMV6T2 NEON BEOSTHREAD POSIXTHREAD WIN32THREAD THREAD LOG2F VISUALIZE SWSCALE \ - LAVF FFMS GPAC GF_MALLOC AVS GPL VECTOREXT INTERLACED CPU_COUNT OPENCL THP" + LAVF FFMS GPAC AVS GPL VECTOREXT INTERLACED CPU_COUNT OPENCL THP" # parse options @@ -948,9 +948,6 @@ if [ "$gpac" = "auto" ] ; then fi if [ "$gpac" = "yes" ] ; then define HAVE_GPAC - if cc_check gpac/isomedia.h "-Werror $GPAC_LIBS" "void *p; p = gf_malloc(1); gf_free(p);" ; then - define HAVE_GF_MALLOC - fi LDFLAGSCLI="$GPAC_LIBS $LDFLAGSCLI" fi diff --git a/output/mp4.c b/output/mp4.c index bae4a58f..f5471b91 100644 --- a/output/mp4.c +++ b/output/mp4.c @@ -31,15 +31,6 @@ #include #endif -#if HAVE_GF_MALLOC -#undef malloc -#undef free -#undef realloc -#define malloc gf_malloc -#define free gf_free -#define realloc gf_realloc -#endif - typedef struct { GF_ISOFile *p_file; -- 2.47.3