Unverified 提交 d4f5a20c authored 作者: José Luis Millán's avatar José Luis Millán 提交者: GitHub

SimulcastConsumer: apply a 33ms offset to intra layer RTP packet (#431)

上级 400d0cf2
......@@ -785,7 +785,10 @@ namespace RTC
// outgoing packet matches the highest seen in the previous stream. Fix it.
else if (tsExtraOffset == 0u)
{
tsExtraOffset = 1u;
// Apply an expected offset for a new frame in a 30fps stream.
static const uint8_t MsOffset{ 33u }; // (1 / 30 * 1000).
tsExtraOffset = MsOffset * this->rtpStream->GetClockRate() / 1000;
}
if (tsExtraOffset > 0u)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论