Update Stamp.h

解决rtsp拉流,ntp时间戳计算累积误差的问题
This commit is contained in:
百鸣 2023-06-01 14:09:50 +08:00 committed by GitHub
parent f241669dee
commit 877af1b62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -125,12 +125,12 @@ public:
uint64_t getNtpStamp(uint32_t rtp_stamp, uint32_t sample_rate);
private:
void update(uint32_t rtp_stamp, uint64_t ntp_stamp_ms);
void update(uint32_t rtp_stamp, double ntp_stamp_ms);
uint64_t getNtpStamp_l(uint32_t rtp_stamp, uint32_t sample_rate);
private:
uint32_t _last_rtp_stamp = 0;
uint64_t _last_ntp_stamp_ms = 0;
double _last_ntp_stamp_ms = 0;
};
}//namespace mediakit