Revision 9a2cb05f

View differences:

libavformat/avformat.h
1337 1337
 */
1338 1338
int av_match_ext(const char *filename, const char *extensions);
1339 1339

  
1340
#ifdef HAVE_AV_CONFIG_H
1341

  
1342
void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
1343

  
1344
#ifdef __GNUC__
1345
#define dynarray_add(tab, nb_ptr, elem)\
1346
do {\
1347
    __typeof__(tab) _tab = (tab);\
1348
    __typeof__(elem) _elem = (elem);\
1349
    (void)sizeof(**_tab == _elem); /* check that types are compatible */\
1350
    ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\
1351
} while(0)
1352
#else
1353
#define dynarray_add(tab, nb_ptr, elem)\
1354
do {\
1355
    ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\
1356
} while(0)
1357
#endif
1358

  
1359
time_t mktimegm(struct tm *tm);
1360
struct tm *brktimegm(time_t secs, struct tm *tm);
1361
const char *small_strptime(const char *p, const char *fmt,
1362
                           struct tm *dt);
1363

  
1364
#endif /* HAVE_AV_CONFIG_H */
1365

  
1366 1340
#endif /* AVFORMAT_AVFORMAT_H */
libavformat/cutils.c
19 19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
 */
21 21
#include "avformat.h"
22
#include "internal.h"
22 23

  
23 24
/* add one element to a dynamic array */
24 25
void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem)
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);
libavformat/matroskadec.c
30 30

  
31 31
#include <stdio.h>
32 32
#include "avformat.h"
33
#include "internal.h"
33 34
/* For ff_codec_get_id(). */
34 35
#include "riff.h"
35 36
#include "isom.h"
libavformat/mpegtsenc.c
23 23
#include "libavutil/crc.h"
24 24
#include "libavcodec/mpegvideo.h"
25 25
#include "avformat.h"
26
#include "internal.h"
26 27
#include "mpegts.h"
27 28
#include "adts.h"
28 29

  

Also available in: Unified diff