diff 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
line wrap: on
line diff
--- a/avcodec.h	Tue Dec 03 15:42:17 2002 +0000
+++ b/avcodec.h	Tue Dec 03 19:40:35 2002 +0000
@@ -1061,5 +1061,10 @@
 void av_free(void *ptr);
 void __av_freep(void **ptr);
 #define av_freep(p) __av_freep((void **)(p))
+/* for static data only */
+/* call av_free_static to release all staticaly allocated tables */
+void av_free_static();
+void *__av_mallocz_static(void** location, unsigned int size);
+#define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s)
 
 #endif /* AVCODEC_H */