mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-29 22:32:23 +08:00
确保ntp时间戳获取失败时,webrtc rtp重传缓存列队长度正常
This commit is contained in:
@@ -538,8 +538,8 @@ uint32_t RtpPacket::getStamp() const {
|
||||
return ntohl(getHeader()->stamp);
|
||||
}
|
||||
|
||||
uint32_t RtpPacket::getStampMS() const {
|
||||
return ntp_stamp & 0xFFFFFFFF;
|
||||
uint32_t RtpPacket::getStampMS(bool ntp) const {
|
||||
return ntp ? ntp_stamp & 0xFFFFFFFF : getStamp() * uint64_t(1000) / sample_rate;
|
||||
}
|
||||
|
||||
uint32_t RtpPacket::getSSRC() const {
|
||||
|
||||
Reference in New Issue
Block a user