提交 0ea1cdbb authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Transport.cpp: Ignore RTCP SDES packets (we don't do anything with them anyway)

上级 034f1bba
# Changelog # Changelog
### 3.4.4 (WIP)
* `Transport.cpp`: Ignore RTCP SDES packets (we don't do anything with them anyway).
### 3.4.3 ### 3.4.3
* `Transport.cpp`: Fix RTCP FIR processing: * `Transport.cpp`: Fix RTCP FIR processing:
......
...@@ -1867,21 +1867,12 @@ namespace RTC ...@@ -1867,21 +1867,12 @@ namespace RTC
case RTC::RTCP::Type::SDES: case RTC::RTCP::Type::SDES:
{ {
auto* sdes = static_cast<RTC::RTCP::SdesPacket*>(packet); // According to RFC 3550 section 6.1 "a CNAME item MUST be included in
// in each compound RTCP packet". So this is true even for compound
for (auto it = sdes->Begin(); it != sdes->End(); ++it) // packets sent by endpoints that are not sending any RTP stream to us
{ // (thus chunks in such a SDES will have an SSCR does not match with
auto& chunk = *it; // any Producer created in this Transport).
auto* producer = this->rtpListener.GetProducer(chunk->GetSsrc()); // Therefore, and given that we do nothing with SDES, just ignore them.
if (!producer)
{
MS_DEBUG_TAG(
rtcp, "no Producer for received SDES chunk [ssrc:%" PRIu32 "]", chunk->GetSsrc());
continue;
}
}
break; break;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论