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

H264::PayloadDescriptorHandler::Encode(): do not check Base Layer Sync flag…

H264::PayloadDescriptorHandler::Encode(): do not check Base Layer Sync flag (since we do not get it in simulcast lowest stream)
上级 3f6eed42
...@@ -185,17 +185,20 @@ namespace RTC ...@@ -185,17 +185,20 @@ namespace RTC
if (this->payloadDescriptor->tid == context->preferences.temporalLayer) if (this->payloadDescriptor->tid == context->preferences.temporalLayer)
{ {
// Upgrade required. Drop current packet if base flag is not set. // Upgrade required. Drop current packet if base flag is not set.
// NOTE: It seems that Base Layer Sync flag is not set when in tid 0. // NOTE: It seems that Base Layer Sync flag is never set when in lowest
// simulcast stream. We may need to implement "The Layer Refresh Request
// (LRR) RTCP Feedback Message":
// https://tools.ietf.org/html/draft-ietf-avtext-lrr-07)
//
// clang-format off // clang-format off
if ( // if (
this->payloadDescriptor->tid > context->currentTemporalLayer && // this->payloadDescriptor->tid > context->currentTemporalLayer &&
!this->payloadDescriptor->b && // !this->payloadDescriptor->b
this->payloadDescriptor->tid == 0 // )
) // // clang-format on
// clang-format on // {
{ // return false;
return false; // }
}
context->currentTemporalLayer = this->payloadDescriptor->tid; context->currentTemporalLayer = this->payloadDescriptor->tid;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论