diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-29 17:33:38 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-29 17:34:56 +0200 |
commit | 35ceaa737643008e89a9ba54aaa9ebc0b57683b4 (patch) | |
tree | b6a90b5d1976897852082a35f5a56ef300a34d03 /libavutil/mem.h | |
parent | 9ac1bf88c00dbe7eb2191e2d5325fb104b9d8341 (diff) | |
download | ffmpeg-35ceaa737643008e89a9ba54aaa9ebc0b57683b4.tar.gz |
Move ff_dynarray_add to lavu and make it public.
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r-- | libavutil/mem.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h index 5dea492021..2be949196c 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -123,4 +123,13 @@ char *av_strdup(const char *s) av_malloc_attrib; */ void av_freep(void *ptr); +/** + * Add an element to a dynamic array. + * + * @param tab_ptr Pointer to the array. + * @param nb_ptr Pointer to the number of elements in the array. + * @param elem Element to be added. + */ +void av_dynarray_add(void *tab_ptr, int *nb_ptr, void *elem); + #endif /* AVUTIL_MEM_H */ |