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

gulp format

上级 541651b3
...@@ -120,9 +120,9 @@ namespace RTC ...@@ -120,9 +120,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
// Initialize/reset RTP counters. // Initialize/reset RTP counters.
this->baseSeq = seq; this->baseSeq = seq;
this->maxSeq = seq; this->maxSeq = seq;
this->badSeq = RtpSeqMod + 1; // So seq == badSeq is false. this->badSeq = RtpSeqMod + 1; // So seq == badSeq is false.
this->maxPacketTs = 0; // Also reset the highest seen RTP timestamp. this->maxPacketTs = 0; // Also reset the highest seen RTP timestamp.
} }
......
...@@ -299,7 +299,7 @@ namespace RTC ...@@ -299,7 +299,7 @@ namespace RTC
report->SetNtpFrac(ntp.fractions); report->SetNtpFrac(ntp.fractions);
// Calculate RTP timestamp diff between now and last received RTP packet. // Calculate RTP timestamp diff between now and last received RTP packet.
auto diffMs = static_cast<uint32_t>(now - this->maxPacketMs); auto diffMs = static_cast<uint32_t>(now - this->maxPacketMs);
uint32_t diffTs = diffMs * this->params.clockRate / 1000; uint32_t diffTs = diffMs * this->params.clockRate / 1000;
report->SetRtpTs(this->maxPacketTs + diffTs); report->SetRtpTs(this->maxPacketTs + diffTs);
......
...@@ -737,7 +737,8 @@ namespace RTC ...@@ -737,7 +737,8 @@ namespace RTC
} }
MS_DEBUG_2TAGS( MS_DEBUG_2TAGS(
rtcp, rtx, rtcp,
rtx,
"%s received, requesting key frame for Consumer " "%s received, requesting key frame for Consumer "
"[sender ssrc:%" PRIu32 ", media ssrc:%" PRIu32 "]", "[sender ssrc:%" PRIu32 ", media ssrc:%" PRIu32 "]",
RTCP::FeedbackPsPacket::MessageType2String(feedback->GetMessageType()).c_str(), RTCP::FeedbackPsPacket::MessageType2String(feedback->GetMessageType()).c_str(),
...@@ -1567,7 +1568,8 @@ namespace RTC ...@@ -1567,7 +1568,8 @@ namespace RTC
static_cast<double>(effectiveBitrate) / static_cast<double>(this->effectiveMaxBitrate) < static_cast<double>(effectiveBitrate) / static_cast<double>(this->effectiveMaxBitrate) <
EffectiveMaxBitrateThresholdBeforeKeyFrame) EffectiveMaxBitrateThresholdBeforeKeyFrame)
{ {
MS_WARN_2TAGS(rbe, rtx, "uplink effective max bitrate abruptly decreased, requesting key frames"); MS_WARN_2TAGS(
rbe, rtx, "uplink effective max bitrate abruptly decreased, requesting key frames");
// Request key frame for all the Producers. // Request key frame for all the Producers.
for (auto* producer : this->producers) for (auto* producer : this->producers)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论