提交 8d4b7e9c authored 作者: José Luis Millán's avatar José Luis Millán

RtpStream: properly compare RTP timestamp

上级 81bed715
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "RTC/RtpStream.hpp" #include "RTC/RtpStream.hpp"
#include "DepLibUV.hpp" #include "DepLibUV.hpp"
#include "Logger.hpp" #include "Logger.hpp"
#include "RTC/SeqManager.hpp"
namespace RTC namespace RTC
{ {
...@@ -127,7 +128,7 @@ namespace RTC ...@@ -127,7 +128,7 @@ namespace RTC
this->transmissionCounter.Update(packet); this->transmissionCounter.Update(packet);
// Update highest seen RTP timestamp. // Update highest seen RTP timestamp.
if (packet->GetTimestamp() > this->maxPacketTs) if (SeqManager<uint32_t>::IsSeqHigherThan(packet->GetTimestamp(), this->maxPacketTs))
{ {
this->maxPacketTs = packet->GetTimestamp(); this->maxPacketTs = packet->GetTimestamp();
this->maxPacketMs = DepLibUV::GetTime(); this->maxPacketMs = DepLibUV::GetTime();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论