Skip to content

rtp: av1depay: Parse internal size fields of OBUs and handle them

They're not recommended by the spec to include in the RTP packets but it is valid to include them. Pion is including them.

When parsing the size fields also make sure to only take that much of a payload unit and to skip any trailing data (which should not exist in the first place).

Pion is also currently storing multiple OBUs in a single payload unit, which is not allowed by the spec but can be easily handled with this code now.

Fixes #560 (closed)

Merge request reports