sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.42k stars 431 forks source link

VP8 Error: `Header size larger than data provided` => VP8 Payload Descriptor is miscalculated for some packets #1040

Closed keremcadirci closed 8 months ago

keremcadirci commented 8 months ago

Problem description: I'm having a lots of Header size larger than data provided error while handling VP8 packets coming from an Android phone.

1016 may have have the same problem

Troubleshooting: The fallowing packet has 6 octets of VP8 payload descriptor image

but https://github.com/sipsorcery-org/sipsorcery/blob/e7b2c5baa9907f3b5473f750ee7f2ecaff41d6fd/src/net/RTP/Packetisation/RtpVP8Header.cs#L57 calculates 4 octets