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

experimental: ignore full frames for the temporal effective profile

上级 9b509dcc
...@@ -359,6 +359,18 @@ namespace RTC ...@@ -359,6 +359,18 @@ namespace RTC
this->syncRequired = true; this->syncRequired = true;
} }
} }
else if (this->effectiveProfile != this->targetProfile && profile == this->effectiveProfile)
{
if (Codecs::IsKnown(this->rtpStream->GetMimeType()) && Codecs::IsKeyFrame(this->rtpStream->GetMimeType(), packet))
{
MS_DEBUG_TAG(
rtp,
"ignoring key frame received for the temporal effective profile [profile:%s]",
RTC::RtpEncodingParameters::profile2String[profile].c_str());
return;
}
}
// If the packet belongs to different profile than the one being sent, drop it. // If the packet belongs to different profile than the one being sent, drop it.
// NOTE: This is specific to simulcast with no temporal layers. // NOTE: This is specific to simulcast with no temporal layers.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论