Go to the documentation of this file.
34 int max_header_toc_size = 1 +
s->max_frames_per_packet;
39 if (size < 1 || size > max_size)
43 len =
s->buf_ptr -
s->buf;
45 (
s->num_frames ==
s->max_frames_per_packet ||
46 len +
size - 1 >
s->max_payload_size ||
49 int header_size =
s->num_frames + 1;
50 p =
s->buf + max_header_toc_size - header_size;
52 memmove(
p,
s->buf, header_size);
61 s->buf_ptr =
s->buf + max_header_toc_size;
62 s->timestamp =
s->cur_timestamp;
65 s->buf[1 +
s->num_frames - 1] |= 0x80;
69 s->buf[1 +
s->num_frames++] = buff[0] & 0x7C;
72 memcpy(
s->buf_ptr, buff,
size);
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)
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.
void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size)
Packetize AMR frames into RTP packets according to RFC 3267, in octet-aligned mode.
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
void * priv_data
Format private data.