mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
兼容一些不规范的rtsp流
This commit is contained in:
parent
5ee9b69568
commit
cf1adf1c92
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user