Skip to content
Snippets Groups Projects
Commit 91082459 authored by Dan Baker's avatar Dan Baker
Browse files

Bug 1788790 - Using TimeDelta instead of TimeStamp to allow for negative...

Bug 1788790 - Using TimeDelta instead of TimeStamp to allow for negative values when given non spec ntp;r=pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D156243
parent 43da894f
No related branches found
No related tags found
No related merge requests found
......@@ -401,7 +401,7 @@ nsTArray<RefPtr<RTCStatsPromise>> RTCRtpReceiver::GetStatsInternal() {
remote.mBytesSent.Construct(
videoStats->rtcp_sender_octets_sent);
remote.mRemoteTimestamp.Construct(
(webrtc::Timestamp::Millis(
(webrtc::TimeDelta::Millis(
videoStats->rtcp_sender_remote_ntp_timestamp_ms) -
webrtc::TimeDelta::Seconds(webrtc::kNtpJan1970))
.ms());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment