Bug 1241066 - fix mozRtt always 0 or 1;r=jib
authorNico Grunbaum
Mon, 20 Mar 2017 16:58:53 -0700
changeset 352790 7784662797115c9befe0f09bea2013a843740645
parent 352789 b2a3d0fd967578dcce222d4396ee3ac70b99e50b
child 352791 f6a3307c3a8d2f462c46cc449bbba9e3cac55df4
push id40662
push userna-g@nostrum.com
push dateThu, 13 Apr 2017 03:17:25 +0000
treeherderautoland@778466279711 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1241066
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1241066 - fix mozRtt always 0 or 1;r=jib My shortest patch to date. MozReview-Commit-ID: 8r3ZrGUk40D
media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc
--- a/media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc
+++ b/media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc
@@ -563,17 +563,17 @@ void RTCPReceiver::HandleReportBlock(
   // local NTP time when we received this
   reportBlock->lastReceivedRRNTPsecs = 0;
   reportBlock->lastReceivedRRNTPfrac = 0;
 
   _clock->CurrentNtp(reportBlock->lastReceivedRRNTPsecs,
                      reportBlock->lastReceivedRRNTPfrac);
 
   // time when we received this in MS
-  uint32_t receiveTimeMS = Clock::NtpToMs(reportBlock->lastReceivedRRNTPsecs,
+  uint64_t receiveTimeMS = Clock::NtpToMs(reportBlock->lastReceivedRRNTPsecs,
                                           reportBlock->lastReceivedRRNTPfrac);
 
   // Estimate RTT
   uint32_t d = (delaySinceLastSendReport & 0x0000ffff) * 1000;
   d /= 65536;
   d += ((delaySinceLastSendReport & 0xffff0000) >> 16) * 1000;
 
   int64_t RTT = 0;