提交 9e38bd48 authored 作者: José Luis Millán's avatar José Luis Millán

RtpStreamSend: use the correct type on timestamp substraction

上级 87f183b7
......@@ -291,8 +291,8 @@ namespace RTC
report->SetOctetCount(this->transmissionCounter.GetBytes());
// Calculate RTP timestamp diff between now and last received RTP packet.
int32_t diffMs = static_cast<int32_t>(now - this->maxPacketMs);
int32_t diffTs = diffMs * this->params.clockRate / 1000;
auto diffMs = static_cast<int64_t>(now - this->maxPacketMs);
int64_t diffTs = diffMs * this->params.clockRate / 1000;
// Get the NTP representation of the current timestamp.
auto ntp = Utils::Time::TimeMs2Ntp(now);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论