]> git.sesse.net Git - x264/commitdiff
Replace gf_malloc with regular malloc in mp4 muxer
authorHenrik Gramner <henrik@gramner.com>
Thu, 10 Oct 2013 14:54:12 +0000 (16:54 +0200)
committerFiona Glaser <fiona@x264.com>
Fri, 25 Oct 2013 17:35:35 +0000 (10:35 -0700)
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
output/mp4.c

index 132e9e2aecac161e537b29e76696904bd2a71de5..bbf6721c68f2ad4f120617ccb7cc8eefc9ea5989 100755 (executable)
--- 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
 
index bae4a58fb36c30e08649889dd7070180d5ce8ad0..f5471b91f39ac0d6d15ae5a50343a62069afe7b9 100644 (file)
 #include <windows.h>
 #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;