mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
修复rtp pts 时间戳回退导致ntp时间戳计算异常的bug:#1152
This commit is contained in:
@@ -231,9 +231,7 @@ uint64_t NtpStamp::getNtpStamp(uint32_t rtp_stamp, uint32_t sample_rate) {
|
||||
if (rtp_stamp == _last_rtp_stamp) {
|
||||
return _last_ntp_stamp_ms;
|
||||
}
|
||||
auto ret = getNtpStamp_l(rtp_stamp, sample_rate);
|
||||
_last_rtp_stamp = rtp_stamp;
|
||||
return ret;
|
||||
return getNtpStamp_l(rtp_stamp, sample_rate);
|
||||
}
|
||||
|
||||
uint64_t NtpStamp::getNtpStamp_l(uint32_t rtp_stamp, uint32_t sample_rate) {
|
||||
|
||||
Reference in New Issue
Block a user