Bug 1241066 - Fix mozRtt always 0 or 1. r=jib, a=ritu
authorNico Grunbaum
Mon, 20 Mar 2017 16:58:53 -0700
changeset 355766 b922ca70cce5c3c1063520f2dec09aea17c3add5
parent 355765 bc635f45af3729f93518c2a06553796b07be2ced
child 355767 1ce6d0652921eff52db5054e4cfef238ca94955d
push id7074
push userryanvm@gmail.com
push dateSat, 06 May 2017 00:57:21 +0000
treeherdermozilla-esr52@4ae71415fecf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib, ritu
bugs1241066
milestone52.1.2
Bug 1241066 - Fix mozRtt always 0 or 1. r=jib, a=ritu 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
@@ -536,17 +536,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;