From 143979f3548d95fc9e4098a67bec391b8c4f0e53 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 10 Nov 2021 11:25:01 +0800 Subject: [PATCH] =?UTF-8?q?Stamp:=20=E5=85=BC=E5=AE=B9=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=88=B3=E8=B7=B3=E8=B7=83=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/Stamp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common/Stamp.cpp b/src/Common/Stamp.cpp index d0b18d87..d0729b52 100644 --- a/src/Common/Stamp.cpp +++ b/src/Common/Stamp.cpp @@ -262,6 +262,7 @@ uint64_t NtpStamp::getNtpStamp_l(uint32_t rtp_stamp, uint32_t sample_rate) { } //不明原因的时间戳大幅跳跃,直接返回上次值 WarnL << "rtp stamp abnormal increased:" << _last_rtp_stamp << " -> " << rtp_stamp; + update(rtp_stamp, _last_ntp_stamp_ms); return _last_ntp_stamp_ms; } @@ -282,6 +283,7 @@ uint64_t NtpStamp::getNtpStamp_l(uint32_t rtp_stamp, uint32_t sample_rate) { } //不明原因的时间戳回退,直接返回上次值 WarnL << "rtp stamp abnormal reduced:" << _last_rtp_stamp << " -> " << rtp_stamp; + update(rtp_stamp, _last_ntp_stamp_ms); return _last_ntp_stamp_ms; }