# HG changeset patch # User glantau # Date 1021762585 0 # Node ID 48e08d9871da3d5ae2bbc35209b58f0b9824e629 # Parent f874493a197039ee75c6757c6735d936226e2241 added proper memory handling functions - fixed include paths diff -r f874493a1970 -r 48e08d9871da common.h --- a/common.h Sat May 18 22:49:11 2002 +0000 +++ b/common.h Sat May 18 22:56:25 2002 +0000 @@ -17,18 +17,19 @@ #ifdef HAVE_AV_CONFIG_H /* only include the following when compiling package */ -#include "../config.h" +#include "config.h" #include #include #include #include +#include #ifndef ENODATA #define ENODATA 61 #endif -#endif +#endif /* HAVE_AV_CONFIG_H */ #ifdef CONFIG_WIN32 @@ -121,7 +122,7 @@ #define UINT64_C(c) (c ## ULL) #endif -#include "../bswap.h" +#include "bswap.h" #ifdef USE_FASTMEMCPY #include "fastmemcpy.h" @@ -897,7 +898,10 @@ } /* memory */ +void *av_malloc(int size); void *av_mallocz(int size); +void av_free(void *ptr); +#define av_freep(p) do { av_free(*p); *p = NULL; } while (0) /* math */ int ff_gcd(int a, int b);