Skip to content

Flush sequencer on stream restart; bound frame-integrity loops - #4760

Merged
boks1971 merged 1 commit into
masterfrom
fix/rtp-restart-sequencer-flush-and-loop-bounds
Aug 14, 2026
Merged

boks1971 merged 1 commit into
masterfrom
fix/rtp-restart-sequencer-flush-and-loop-bounds

Conversation

@boks1971

Copy link
Copy Markdown
Contributor
  • Flush the downtrack sequencer on stream restart (Resync, ReceiverRestart, codec change) so NACK retransmissions can't use metadata that no longer matches the resynced bucket. Adds a defensive bounds guard on the RTX/forward payload slicing.
  • Cap the PacketHistory/FrameIntegrityChecker catch-up loops to the ring size so a large sequence/frame-number jump can't drive a big per-packet iteration count.

Adds focused unit tests for the sequencer flush and both loop bounds.

🤖 Generated with Claude Code

Flush the downtrack sequencer on stream restart (Resync, ReceiverRestart,
codec change) so NACK retransmissions can't use metadata that no longer
matches the resynced bucket. Add a defensive bounds guard on the RTX and
forward payload slicing.

Cap the PacketHistory and FrameIntegrityChecker catch-up loops to the ring
size so a large sequence/frame-number jump can't drive a big per-packet
iteration count.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@boks1971
boks1971 merged commit 68ecd38 into master Aug 14, 2026
4 checks passed
@boks1971
boks1971 deleted the fix/rtp-restart-sequencer-flush-and-loop-bounds branch August 14, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants