aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-29 17:33:38 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-29 17:34:56 +0200
commit35ceaa737643008e89a9ba54aaa9ebc0b57683b4 (patch)
treeb6a90b5d1976897852082a35f5a56ef300a34d03 /libavformat/internal.h
parent9ac1bf88c00dbe7eb2191e2d5325fb104b9d8341 (diff)
downloadffmpeg-35ceaa737643008e89a9ba54aaa9ebc0b57683b4.tar.gz
Move ff_dynarray_add to lavu and make it public.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 6f1305ce25..0b8a35f7af 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -31,20 +31,18 @@ typedef struct AVCodecTag {
unsigned int tag;
} AVCodecTag;
-void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
-
#ifdef __GNUC__
#define dynarray_add(tab, nb_ptr, elem)\
do {\
__typeof__(tab) _tab = (tab);\
__typeof__(elem) _elem = (elem);\
(void)sizeof(**_tab == _elem); /* check that types are compatible */\
- ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\
+ av_dynarray_add(_tab, nb_ptr, _elem);\
} while(0)
#else
#define dynarray_add(tab, nb_ptr, elem)\
do {\
- ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\
+ av_dynarray_add((tab), nb_ptr, (elem));\
} while(0)
#endif