60 av_log(s1,
AV_LOG_DEBUG,
"Sending NAL %x of len %d M=%d\n", buf[0] & 0x1F, size, last);
64 int skip_aggregate = 0;
82 if (buffered_size + 2 + header_size +
size <= s->max_payload_size &&
84 if (buffered_size == 0) {
102 int flag_byte, header_size;
106 "NAL size %d > %d, try -slice-max-size %d\n", size,
125 uint8_t nal_type = (buf[0] >> 1) & 0x3F;
155 s->
buf[2] = nal_type;
172 s->
buf[flag_byte] &= ~(1 << 7);
174 s->
buf[flag_byte] |= 1 << 6;
175 memcpy(&s->
buf[header_size], buf, size);