Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Ignore rejected m= sections #716

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions talk/owt/sdk/base/sdputils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ std::string SdpUtils::SetPreferCodecs(const std::string& sdp,
RTC_LOG(LS_WARNING) << "Wrong SDP format description: " << m_line;
return sdp;
}
if (m_line_vector[1] == "0") {
RTC_LOG(LS_WARNING) << "Ignore rejected section: " << m_line;
return sdp;
}
std::stringstream m_line_stream;
for (int i = 0; i < 3; i++) {
if (i < 2)
Expand Down