Mercurial > libavcodec.hg
comparison avcodec.h @ 902:6acc8394960d libavcodec
* two functions to handle allocation of static data more simple
av_mallocz_static - called for every static data table
av_free_static - called when ffmpeg is no longer needed and should free
all static resources
* simple usage shown in mpegaudiodec.c
author | kabi |
---|---|
date | Tue, 03 Dec 2002 19:40:35 +0000 |
parents | b0d29bf1cecd |
children | 22ee74da2cd3 |
comparison
equal
deleted
inserted
replaced
901:07a677389920 | 902:6acc8394960d |
---|---|
1059 void *av_malloc(unsigned int size); | 1059 void *av_malloc(unsigned int size); |
1060 void *av_mallocz(unsigned int size); | 1060 void *av_mallocz(unsigned int size); |
1061 void av_free(void *ptr); | 1061 void av_free(void *ptr); |
1062 void __av_freep(void **ptr); | 1062 void __av_freep(void **ptr); |
1063 #define av_freep(p) __av_freep((void **)(p)) | 1063 #define av_freep(p) __av_freep((void **)(p)) |
1064 /* for static data only */ | |
1065 /* call av_free_static to release all staticaly allocated tables */ | |
1066 void av_free_static(); | |
1067 void *__av_mallocz_static(void** location, unsigned int size); | |
1068 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s) | |
1064 | 1069 |
1065 #endif /* AVCODEC_H */ | 1070 #endif /* AVCODEC_H */ |