[x264-devel] Replace gf_malloc with regular malloc in mp4 muxer

Henrik Gramner git at videolan.org
Wed Oct 30 21:18:32 CET 2013


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Thu Oct 10 16:54:12 2013 +0200| [7205923d609fdc37265f3c202ab9eb3eea446fd1] | committer: Jason Garrett-Glaser

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.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=7205923d609fdc37265f3c202ab9eb3eea446fd1
---

 configure    |    5 +----
 output/mp4.c |    9 ---------
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/configure b/configure
index 132e9e2..bbf6721 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 bae4a58..f5471b9 100644
--- a/output/mp4.c
+++ b/output/mp4.c
@@ -31,15 +31,6 @@
 #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;



More information about the x264-devel mailing list