Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where packets retransmitted for NACK are encrypted with SRTP twice #1198

Closed
wants to merge 1 commit into from

Conversation

sile
Copy link
Contributor

@sile sile commented May 29, 2024

Let me report a NACK handling bug and submit a PR to fix it.

I used OBS Studio (30.1.2) WHIP to publish a video stream to a WebRTC SFU server.
When the network became unstable and NACK packets were sent from the server, the video stream appeared corrupted on the viewer’s side.
After some debugging, it was discovered that the packet binaries stored in RtcpNackResponder were unintentionally modified by the srtp_protect() function when the messages were first sent. As a result, when the packets were re-sent to the server for NACK, they were encrypted twice.

This PR fixes the issue by deep copying messages before they are stored in RtcpNackResponder.

@paullouisageneau
Copy link
Owner

Thank you for submitting a PR, but this is already fixed by #1118

@sile
Copy link
Contributor Author

sile commented May 29, 2024

Oops, sorry for missing the PR.

@sile sile closed this May 29, 2024
@sile sile deleted the fix-nack-handling-bug branch May 29, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants