37 int max_pkt_size, xdt, frag;
72 frag = size <= max_pkt_size ? 0 : 1;
77 int remaining = end_ptr - ptr;
103 memcpy(q, buff, size);
118 int len = (!frag || frag == 3) ? size : max_pkt_size;
122 *q++ = (frag << 6) | (xdt << 4);
126 memcpy(q, buff, len);
133 frag = size <= max_pkt_size ? 3 : 2;
int max_frames_per_packet
AVStream ** streams
A list of all streams in the file.
simple assert() macros that are a bit more flexible than ISO C assert().
int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b)
Compare two timestamps each in its own time base.
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size)
Packetize Xiph frames into RTP according to RFC 5215 (Vorbis) and the Theora RFC draft.
void * priv_data
Format private data.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...