36 if (end - start < nal_length_size)
38 while (nal_length_size--)
39 res = (res << 8) | *start++;
41 if (res > end - start)
51 av_log(s1,
AV_LOG_DEBUG,
"Sending NAL %x of len %d M=%d\n", buf[0] & 0x1F, size, last);
60 "NAL size %d > %d, try -slice-max-size %d\n", size,
76 s->
buf[1] &= ~(1 << 7);
79 memcpy(&s->
buf[2], buf, size);