When fragmenting partions it can happen that an RTP packet only caries 1
byte of RTP data.
self->started = FALSE;
}
+ /* At least one header and one vp8 byte */
if (G_UNLIKELY (size < 2))
goto too_small;
for (; (data[offset] & 0x80) != 0; offset++) {
/* should be at least one more pictureID byte and at least one byte in
* the vp8 payload */
- if (offset + 2 >= size)
+ if (G_UNLIKELY (offset + 2 >= size))
goto too_small;
}
offset++;
}
- if (offset + 1 >= size)
+ if (G_UNLIKELY (offset >= size))
goto too_small;
payload = gst_rtp_buffer_get_payload_subbuffer (buf, offset, -1);