Skip to content

[pull] develop from ossrs:develop#60

Merged
pull[bot] merged 1 commit into
timfengzi:developfrom
ossrs:develop
Sep 4, 2025
Merged

[pull] develop from ossrs:develop#60
pull[bot] merged 1 commit into
timfengzi:developfrom
ossrs:develop

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Sep 4, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

…v7.0.78 (#4467)

Fixes a bug in WebRTC NACK packet recovery mechanism where recovered
packets were being discarded instead of processed.

In `SrsRtcRecvTrack::on_nack()`, when a retransmitted packet arrived
(found in NACK receiver), the method would:
1. ✅ Remove the packet from NACK receiver (correct)
2. ❌ Return early without adding the packet to RTP queue (BUG)

This caused recovered packets to be lost, defeating the purpose of the
NACK mechanism and potentially causing media quality issues.

Restructured the control flow in `on_nack()` to ensure both new and
recovered packets reach the packet insertion logic:

- **Before**: Early return for recovered packets → packets discarded
- **After**: Conditional NACK management + unified packet processing →
all packets queued

Closes #3820

---------

Co-authored-by: Haibo Chen <495810242@qq.com>
Co-authored-by: OSSRS-AI <winlinam@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Sep 4, 2025
@pull pull Bot added the ⤵️ pull label Sep 4, 2025
@pull pull Bot merged commit 57e1622 into timfengzi:develop Sep 4, 2025
12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant