aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-03-21 21:58:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-21 21:58:14 +0000
commit8d1f2ba5e1f411836a7470f1b70676d2fe870303 (patch)
treea66b8c3d95228fc0b7a908ce3eb9e689d54de8d0 /libavcodec/avcodec.h
parent2a42b5c37f9bbbbbe38df8344363b45af53b68a0 (diff)
downloadffmpeg-8d1f2ba5e1f411836a7470f1b70676d2fe870303.tar.gz
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 Originally committed as revision 2912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index e6fa42cdd2..44a115858d 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2096,8 +2096,7 @@ void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
/* 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);