Go to the documentation of this file.
31 const int max_au_headers_size = 2 + 2 *
s->max_frames_per_packet;
32 int len, max_packet_size =
s->max_payload_size - max_au_headers_size;
42 len = (
s->buf_ptr -
s->buf);
44 (
s->num_frames ==
s->max_frames_per_packet ||
45 (
len +
size) >
s->max_payload_size ||
48 int au_size =
s->num_frames * 2;
50 p =
s->buf + max_au_headers_size - au_size - 2;
52 memmove(p + 2,
s->buf + 2, au_size);
61 if (
s->num_frames == 0) {
62 s->buf_ptr =
s->buf + max_au_headers_size;
63 s->timestamp =
s->cur_timestamp;
66 if (
size <= max_packet_size) {
67 p =
s->buf +
s->num_frames++ * 2 + 2;
69 memcpy(
s->buf_ptr, buff,
size);
74 max_packet_size =
s->max_payload_size - 4;
80 memcpy(p + 4, buff,
len);
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_TIME_BASE_Q
Internal time base represented as fractional value.
AVStream ** streams
A list of all streams in the file.
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
int extradata_size
Size of the extradata content in bytes.
void * priv_data
Format private data.