diff avcodec.h @ 1900:5cde80c5d929 libavcodec

static allocation rewrite (old code was plain a broken mess) doesnt call realloc every time doesnt randomly overwrite memory after after 8-16 calls doesnt use ugly macro wraper fewer lines of code
author michael
date Sun, 21 Mar 2004 21:58:14 +0000
parents 85fe2f4633ec
children 129236143f2e
line wrap: on
line diff
--- a/avcodec.h	Sat Mar 20 16:40:20 2004 +0000
+++ b/avcodec.h	Sun Mar 21 21:58:14 2004 +0000
@@ -2096,8 +2096,7 @@
 /* for static data only */
 /* call av_free_static to release all staticaly allocated tables */
 void av_free_static(void);
-void *__av_mallocz_static(void** location, unsigned int size);
-#define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s)
+void *av_mallocz_static(unsigned int size);
 
 /* add by bero : in adx.c */
 int is_adx(const unsigned char *buf,size_t bufsize);