mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-17 19:40:54 +08:00
兼容一些不规范的rtsp流
This commit is contained in:
@@ -223,6 +223,10 @@ void NtpStamp::setNtpStamp(uint32_t rtp_stamp, uint64_t ntp_stamp_ms) {
|
||||
}
|
||||
|
||||
void NtpStamp::update(uint32_t rtp_stamp, uint64_t ntp_stamp_ms) {
|
||||
if (ntp_stamp_ms == 0) {
|
||||
//实测发现有些rtsp服务器发送的rtp时间戳和ntp时间戳一直为0
|
||||
return;
|
||||
}
|
||||
_last_rtp_stamp = rtp_stamp;
|
||||
_last_ntp_stamp_ms = ntp_stamp_ms;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user