Skip to content

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

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

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

Conversation

@thinker132203
Copy link

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.

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