mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
The pacer encoded FEC after it had filled in abs-send-time and the transport-wide sequence number. libwebrtc generates FEC before its sender fills them in, and its FlexFEC receiver zeroes both in media packets before recovery. Packets recovered from SFU repairs therefore got wrong bytes in those extensions, and in the payload when the header lengths within a group differed, for example when only the first packet carried abs-capture-time. Zero both extensions after the media packet is written and before it is fed to the encoder.