Unverified 提交 1a751476 authored 作者: Gustavo Garcia's avatar Gustavo Garcia 提交者: GitHub

Fix VP9 kSVC forwarding logic to not forward lower unneded layers (#778)

上级 26943dc3
...@@ -281,9 +281,17 @@ namespace RTC ...@@ -281,9 +281,17 @@ namespace RTC
} }
} }
// Filter spatial layers higher than current one (unless old packet). // Unless old packet filter spatial layers that are either
if (packetSpatialLayer > tmpSpatialLayer && !isOldPacket) // * higher than current one
// * different than the current one when KSVC is enabled and this is not a keyframe
// (interframe p bit = 1)
if (
!isOldPacket &&
(packetSpatialLayer > tmpSpatialLayer ||
(context->IsKSvc() && this->payloadDescriptor->p && packetSpatialLayer != tmpSpatialLayer)))
{
return false; return false;
}
// Check and handle temporal layer (unless old packet). // Check and handle temporal layer (unless old packet).
if (!isOldPacket) if (!isOldPacket)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论