Skip to content

RTC: Fix missing CRLF for SSRC group in SDP#4640

Open
thinker132203 wants to merge 1 commit into
ossrs:developfrom
thinker132203:fix-sdp-group-missing-crlf
Open

RTC: Fix missing CRLF for SSRC group in SDP#4640
thinker132203 wants to merge 1 commit into
ossrs:developfrom
thinker132203:fix-sdp-group-missing-crlf

Conversation

@thinker132203

Copy link
Copy Markdown

Hello SRS team,

During my recent experimental development to support downlink RTX/FEC (which requires negotiating a=ssrc-group:FID/FEC to players), I found a formatting bug in the SDP generation logic.

In trunk/src/protocol/srs_protocol_sdp.cpp, the SrsSSRCGroup::encode function lacks a trailing kCRLF.
If ssrc_groups_ is not empty during downlink SDP generation, it will generate concatenated SDP lines like:
a=ssrc-group:FID 111 222a=ssrc:111 cname:...
This causes WebRTC clients (e.g., Chrome) to fail to parse the remote answer SDP.

@winlinvip winlinvip force-pushed the develop branch 2 times, most recently from 70f14fc to ebf8b71 Compare March 22, 2026 12:11
@winlinvip winlinvip force-pushed the develop branch 3 times, most recently from 6ce415e to 6ee6f1c Compare May 17, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants