21 #ifndef AVFORMAT_INTERNAL_H
22 #define AVFORMAT_INTERNAL_H
28 #define MAX_URL_SIZE 4096
31 #define PROBE_BUF_MIN 2048
32 #define PROBE_BUF_MAX (1 << 20)
35 # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
37 # define hex_dump_debug(class, buf, size)
84 #define RAW_PACKET_BUFFER_SIZE 2500000
105 #define dynarray_add(tab, nb_ptr, elem)\
107 __typeof__(tab) _tab = (tab);\
108 __typeof__(elem) _elem = (elem);\
109 (void)sizeof(**_tab == _elem); \
110 av_dynarray_add(_tab, nb_ptr, _elem);\
113 #define dynarray_add(tab, nb_ptr, elem)\
115 av_dynarray_add((tab), nb_ptr, (elem));\
145 #define NTP_OFFSET 2208988800ULL
146 #define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
170 const char *dest_addr,
const char *dest_type,
211 #define SPACE_CHARS " \t\r\n"
224 int key_len,
char **dest,
int *dest_len);
247 int64_t wanted_timestamp,
int flags);
253 int *nb_index_entries,
254 unsigned int *index_entries_allocated_size,
269 int64_t
start, int64_t
end,
const char *title);
293 int64_t target_ts,
int flags);
306 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
315 int64_t target_ts, int64_t pos_min,
316 int64_t pos_max, int64_t pos_limit,
317 int64_t ts_min, int64_t ts_max,
318 int flags, int64_t *ts_ret,
319 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
334 unsigned int pts_num,
unsigned int pts_den);
426 static inline int ff_rename(
const char *oldpath,
const char *newpath,
void *logctx)
429 if (rename(oldpath, newpath) == -1) {