确保ntp时间戳获取失败时,webrtc rtp重传缓存列队长度正常

This commit is contained in:
xiongziliang
2022-02-27 01:02:54 +08:00
parent db3df7b92e
commit b82cd5a500
3 changed files with 5 additions and 5 deletions

View File

@@ -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 {