gpac decided to randomly break API and require us to use their own custom malloc and free.
fi
if [ "$mp4_output" = "yes" ] ; then
define MP4_OUTPUT
+ if cc_check gpac/isomedia.h "-Werror $MP4_LDFLAGS" "gf_malloc(1); gf_free(NULL);" ; then
+ define HAVE_GF_MALLOC
+ fi
LDFLAGSCLI="$LDFLAGSCLI $MP4_LDFLAGS"
fi
#include "muxers.h"
#include <gpac/isomedia.h>
+#ifdef HAVE_GF_MALLOC
+#undef malloc
+#undef free
+#define malloc gf_malloc
+#define free gf_free
+#endif
+
typedef struct
{
GF_ISOFile *p_file;