From 00acea369e71670eb13d5526cb680df72e3fdf7d Mon Sep 17 00:00:00 2001 From: rqb500 <32304362+rqb500@users.noreply.github.com> Date: Fri, 26 Aug 2022 11:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E6=94=B6rtsp?= =?UTF-8?q?=E3=80=81gb28181=E7=AD=89rtp=E6=B5=81=E8=BD=AC=E4=B8=BA?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=8D=8F=E8=AE=AE=E6=92=AD=E6=94=BE=E6=97=B6?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=8D=A1=E9=A1=BF=E7=9A=84bug=20(#1906)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复获取ntp_stamp时计算溢出的bug --- src/Rtcp/Rtcp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtcp/Rtcp.cpp b/src/Rtcp/Rtcp.cpp index ac30ac25..12e6c693 100644 --- a/src/Rtcp/Rtcp.cpp +++ b/src/Rtcp/Rtcp.cpp @@ -284,7 +284,7 @@ uint64_t RtcpSR::getNtpUnixStampMS() const { struct timeval tv; tv.tv_sec = ntpmsw - 0x83AA7E80; tv.tv_usec = (decltype(tv.tv_usec))(ntplsw / ((double)(((uint64_t)1) << 32) * 1.0e-6)); - return 1000 * tv.tv_sec + tv.tv_usec / 1000; + return (uint64_t)1000 * tv.tv_sec + tv.tv_usec / 1000; } void RtcpSR::setNtpStamp(struct timeval tv) {