diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-11 21:44:23 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-11 21:44:23 +0000 |
commit | 9a2cb05ff9281339c37feb8488e5d24d794672fb (patch) | |
tree | 3ce17a493a3067acd23fe0e513092a8601054b94 /libavformat/internal.h | |
parent | bc3c85a3e6f684c6aa38760d627d05587faf1bca (diff) | |
download | ffmpeg-9a2cb05ff9281339c37feb8488e5d24d794672fb.tar.gz |
Move the internal function declarations in avformat.h to internal.h.
Originally committed as revision 22843 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 822b7c6eba..789988019d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -24,6 +24,28 @@ #include <stdint.h> #include "avformat.h" +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);\ +} while(0) +#else +#define dynarray_add(tab, nb_ptr, elem)\ +do {\ + ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\ +} while(0) +#endif + +time_t mktimegm(struct tm *tm); +struct tm *brktimegm(time_t secs, struct tm *tm); +const char *small_strptime(const char *p, const char *fmt, + struct tm *dt); + char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase); void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx); |