mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
修复接收rtsp、gb28181等rtp流转为其他协议播放时可能卡顿的bug (#1906)
* 修复获取ntp_stamp时计算溢出的bug
This commit is contained in:
parent
44ba971cb6
commit
00acea369e
@ -284,7 +284,7 @@ uint64_t RtcpSR::getNtpUnixStampMS() const {
|
||||
struct timeval tv;
|
||||
tv.tv_sec = ntpmsw - 0x83AA7E80;
|
||||
tv.tv_usec = (decltype(tv.tv_usec))(ntplsw / ((double)(((uint64_t)1) << 32) * 1.0e-6));
|
||||
return 1000 * tv.tv_sec + tv.tv_usec / 1000;
|
||||
return (uint64_t)1000 * tv.tv_sec + tv.tv_usec / 1000;
|
||||
}
|
||||
|
||||
void RtcpSR::setNtpStamp(struct timeval tv) {
|
||||
|
Loading…
Reference in New Issue
Block a user