mirror of
https://github.com/livekit/livekit.git
synced 2026-12-04 07:08:11 +00:00
libwebrtc generates FlexFEC before it writes abs-send-time and the transport-wide sequence number, so the repair packet covers them as zeros. The upstream decoder XORed the received packets with the real values. When one packet of a group has two-byte extension headers, those bytes are at other offsets and corrupt other extensions of the recovered packet, such as the dependency descriptor. The decoder now zeroes these extensions in each media packet before the XOR, as the libwebrtc receiver does. The buffer passes the negotiated IDs on bind. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>