Mercurial > libavformat.hg
comparison avformat.h @ 230:9f4f4ca9f7b5 libavformat
simpler strptime - added os_support.[ch] - moved localtime_r to os_support.c
author | bellard |
---|---|
date | Mon, 08 Sep 2003 21:20:55 +0000 |
parents | d0332f4362b6 |
children | b99548e3ab84 |
comparison
equal
deleted
inserted
replaced
229:b0771ae979e3 | 230:9f4f4ca9f7b5 |
---|---|
9 #define LIBAVFORMAT_VERSION "0.4.8" | 9 #define LIBAVFORMAT_VERSION "0.4.8" |
10 #define LIBAVFORMAT_BUILD 4606 | 10 #define LIBAVFORMAT_BUILD 4606 |
11 #define LIBAVFORMAT_BUILD_STR "4606" | 11 #define LIBAVFORMAT_BUILD_STR "4606" |
12 | 12 |
13 #define LIBAVFORMAT_IDENT "FFmpeg" LIBAVFORMAT_VERSION "b" LIBAVFORMAT_BUILD_STR | 13 #define LIBAVFORMAT_IDENT "FFmpeg" LIBAVFORMAT_VERSION "b" LIBAVFORMAT_BUILD_STR |
14 | |
15 #include <time.h> | |
14 | 16 |
15 #include "avcodec.h" | 17 #include "avcodec.h" |
16 | 18 |
17 #include "avio.h" | 19 #include "avio.h" |
18 | 20 |
485 | 487 |
486 /* DV1394 */ | 488 /* DV1394 */ |
487 int dv1394_init(void); | 489 int dv1394_init(void); |
488 | 490 |
489 #ifdef HAVE_AV_CONFIG_H | 491 #ifdef HAVE_AV_CONFIG_H |
492 | |
493 #include "os_support.h" | |
494 | |
490 int strstart(const char *str, const char *val, const char **ptr); | 495 int strstart(const char *str, const char *val, const char **ptr); |
491 int stristart(const char *str, const char *val, const char **ptr); | 496 int stristart(const char *str, const char *val, const char **ptr); |
492 void pstrcpy(char *buf, int buf_size, const char *str); | 497 void pstrcpy(char *buf, int buf_size, const char *str); |
493 char *pstrcat(char *buf, int buf_size, const char *s); | 498 char *pstrcat(char *buf, int buf_size, const char *s); |
494 | 499 |
500 typeof(elem) _elem = (elem);\ | 505 typeof(elem) _elem = (elem);\ |
501 (void)sizeof(**_tab == _elem); /* check that types are compatible */\ | 506 (void)sizeof(**_tab == _elem); /* check that types are compatible */\ |
502 __dynarray_add((unsigned long **)_tab, nb_ptr, (unsigned long)_elem);\ | 507 __dynarray_add((unsigned long **)_tab, nb_ptr, (unsigned long)_elem);\ |
503 } while(0) | 508 } while(0) |
504 | 509 |
510 time_t mktimegm(struct tm *tm); | |
511 const char *small_strptime(const char *p, const char *fmt, | |
512 struct tm *dt); | |
513 | |
505 struct in_addr; | 514 struct in_addr; |
506 int resolve_host(struct in_addr *sin_addr, const char *hostname); | 515 int resolve_host(struct in_addr *sin_addr, const char *hostname); |
507 | 516 |
508 void url_split(char *proto, int proto_size, | 517 void url_split(char *proto, int proto_size, |
509 char *hostname, int hostname_size, | 518 char *hostname, int hostname_size, |