Revision 9a2cb05f libavformat/internal.h

View differences:

libavformat/internal.h
24 24
#include <stdint.h>
25 25
#include "avformat.h"
26 26

  
27
void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
28

  
29
#ifdef __GNUC__
30
#define dynarray_add(tab, nb_ptr, elem)\
31
do {\
32
    __typeof__(tab) _tab = (tab);\
33
    __typeof__(elem) _elem = (elem);\
34
    (void)sizeof(**_tab == _elem); /* check that types are compatible */\
35
    ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\
36
} while(0)
37
#else
38
#define dynarray_add(tab, nb_ptr, elem)\
39
do {\
40
    ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\
41
} while(0)
42
#endif
43

  
44
time_t mktimegm(struct tm *tm);
45
struct tm *brktimegm(time_t secs, struct tm *tm);
46
const char *small_strptime(const char *p, const char *fmt,
47
                           struct tm *dt);
48

  
27 49
char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase);
28 50

  
29 51
void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx);

Also available in: Unified diff