47 #define RTCP_SR_SIZE 28
179 "Packetizing H261 is experimental and produces incorrect "
180 "packetization for cases where GOBs don't fit into packets "
181 "(even though most receivers may handle it just fine). "
182 "Please set -f_strict experimental in order to enable it.\n");
269 s1->streams[0]->time_base) +
s->base_timestamp;
290 for (len = (7 + len) % 4; len % 4; len++)
310 av_dlog(s1,
"rtp_send_data size=%d\n", len);
322 s->
seq = (s->
seq + 1) & 0xffff;
330 const uint8_t *buf1,
int size,
int sample_size_bits)
333 int len, max_packet_size,
n;
335 int aligned_samples_size = sample_size_bits/
av_gcd(sample_size_bits, 8);
337 max_packet_size = (s->
max_payload_size / aligned_samples_size) * aligned_samples_size;
339 if ((sample_size_bits % 8) == 0 && ((8 *
size) % sample_size_bits) != 0)
344 len =
FFMIN(max_packet_size, size);
368 if ((len + size) > max_packet_size) {
379 if (size > max_packet_size) {
383 len = max_packet_size - 4;
389 s->
buf[2] = count >> 8;
391 memcpy(s->
buf + 4, buf1, len);
405 memcpy(s->
buf_ptr, buf1, size);
414 int len, max_packet_size;
419 len = max_packet_size;
476 memcpy(s->
buf_ptr, buf, frame_size);
560 int mb_info_size = 0;
594 "Packet size %d too large for max RTP payload size %d\n",
629 .priv_class = &rtp_muxer_class,