Mercurial > libavcodec.hg
comparison avcodec.h @ 1031:19de1445beb2 libavcodec
use av_malloc() functions - added av_strdup and av_realloc()
author | bellard |
---|---|
date | Thu, 23 Jan 2003 23:03:09 +0000 |
parents | d6ba0641cc36 |
children | 1d906a29afb6 |
comparison
equal
deleted
inserted
replaced
1030:801f2739264a | 1031:19de1445beb2 |
---|---|
1231 int avcodec(void* handle, avc_cmd_t cmd, void* pin, void* pout); | 1231 int avcodec(void* handle, avc_cmd_t cmd, void* pin, void* pout); |
1232 | 1232 |
1233 /* memory */ | 1233 /* memory */ |
1234 void *av_malloc(unsigned int size); | 1234 void *av_malloc(unsigned int size); |
1235 void *av_mallocz(unsigned int size); | 1235 void *av_mallocz(unsigned int size); |
1236 void *av_realloc(void *ptr, unsigned int size); | |
1236 void av_free(void *ptr); | 1237 void av_free(void *ptr); |
1238 char *av_strdup(const char *s); | |
1237 void __av_freep(void **ptr); | 1239 void __av_freep(void **ptr); |
1238 #define av_freep(p) __av_freep((void **)(p)) | 1240 #define av_freep(p) __av_freep((void **)(p)) |
1239 void *av_fast_realloc(void *ptr, int *size, int min_size); | 1241 void *av_fast_realloc(void *ptr, int *size, int min_size); |
1240 /* for static data only */ | 1242 /* for static data only */ |
1241 /* call av_free_static to release all staticaly allocated tables */ | 1243 /* call av_free_static to release all staticaly allocated tables */ |