1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Trim SDP line space for pion/webrtc client. (#2466)

This commit is contained in:
Winlin 2021-07-08 09:54:55 +08:00 committed by GitHub
parent 67ebd08342
commit 77c958ad1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -747,6 +747,9 @@ srs_error_t SrsSdp::parse(const std::string& sdp_str)
line.erase(line.size()-1, 1);
}
// Strip the space of line, for pion WebRTC client.
line = srs_string_trim_end(line, " ");
if ((err = parse_line(line)) != srs_success) {
return srs_error_wrap(err, "parse sdp line failed");
}