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

Fix crash in RtpPacket::Dump()

上级 6c828a7a
...@@ -180,10 +180,13 @@ namespace RTC ...@@ -180,10 +180,13 @@ namespace RTC
if (HasOneByteExtensions()) if (HasOneByteExtensions())
{ {
for (const auto& extension : this->oneByteExtensions) for (const auto& extension : this->oneByteExtensions)
{
if (extension != nullptr)
{ {
extIds.push_back(std::to_string(extension->id)); extIds.push_back(std::to_string(extension->id));
} }
} }
}
else else
{ {
extIds.reserve(this->mapTwoBytesExtensions.size()); extIds.reserve(this->mapTwoBytesExtensions.size());
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论