45 unsigned *adu_size,
unsigned *cont)
54 *cont = !!(buf[0] & 0x80);
55 if (!(buf[0] & 0x40)) {
57 *adu_size = buf[0] & ~0xc0;
60 *adu_size =
AV_RB16(buf) & ~0xc000;
71 unsigned adu_size, continuation;
80 if (header_size < 0) {
87 if (continuation || adu_size > len) {
99 memcpy(pkt->
data, buf, adu_size);
101 data->
split_pos += header_size + adu_size;
120 if (!continuation && adu_size <= len) {
129 memcpy(pkt->
data, buf, adu_size);
146 }
else if (!continuation) {
166 "Received packet without a start fragment; dropping.\n");
185 "Error occurred when getting fragment buffer.\n");