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

RtpPacket: stop parsing One-Byte extensions upon id=15 is found (as per spec)

上级 dc598d36
......@@ -570,7 +570,11 @@ namespace RTC
break;
}
// Store the One-Byte extension element in a map. Ignore if 0.
// id=15 in One-Byte extensions means "stop parsing here".
if (id == 15u)
break;
// Store the One-Byte extension element in a map. Ignore if 0 (padding).
if (id != 0u)
this->oneByteExtensions[id] = reinterpret_cast<OneByteExtension*>(ptr);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论