Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 2354843003: Add sanity check for decreasing RTP timestamp in RtpToNtpMs. (Closed)

Created:
4 years, 3 months ago by åsapersson
Modified:
4 years, 2 months ago
Reviewers:
stefan-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, henrika_webrtc, zhengzhonghou_agora.io, tterriberry_mozilla.com, fengyue_agora.io, peah-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add sanity check for decreasing RTP timestamp in RtpToNtpMs. The capture time for a frame (capture_ms) is set later (in ViEEncoder::IncomingCapturedFrame) than the timestamp. Could potentially cause the RTP timestamp in consecutive RTCP SR to decrease. Example: // Frame1 46371: timestamp:2732, capture_ms:46373, rtcp SR ms: 46423 -> estimated current RTP timestamp:2732+(46423-46373)*90 = 7232 // Frame2 46404: timestamp:5702, capture_ms:46412, rtcp SR ms: 46428 -> estimated current RTP timestamp:5702+(46428-46412)*90 = 7142 // Diff: 33 ms: 33 ms, 39 ms, 5 ms BUG=b/31154867 Committed: https://crrev.com/3cc47ebd2d0efc6a48ddb5b142fa9ea9c1ae4435 Cr-Commit-Position: refs/heads/master@{#14454}

Patch Set 1 #

Total comments: 5

Patch Set 2 : remove {} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M webrtc/system_wrappers/source/rtp_to_ntp.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/system_wrappers/source/rtp_to_ntp_unittest.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
åsapersson
4 years, 3 months ago (2016-09-20 13:36:34 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode113 webrtc/system_wrappers/source/rtp_to_ntp.cc:113: if (rtcp_timestamp_new < rtcp_timestamp_old) { Remove {} https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode114 webrtc/system_wrappers/source/rtp_to_ntp.cc:114: ...
4 years, 2 months ago (2016-09-28 09:18:05 UTC) #4
åsapersson
https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode113 webrtc/system_wrappers/source/rtp_to_ntp.cc:113: if (rtcp_timestamp_new < rtcp_timestamp_old) { On 2016/09/28 09:18:05, stefan-webrtc ...
4 years, 2 months ago (2016-09-29 07:25:16 UTC) #5
stefan-webrtc
lgtm https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2354843003/diff/1/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode114 webrtc/system_wrappers/source/rtp_to_ntp.cc:114: return false; On 2016/09/29 07:25:16, åsapersson wrote: > ...
4 years, 2 months ago (2016-09-30 08:40:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2354843003/20001
4 years, 2 months ago (2016-09-30 08:59:30 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-30 10:16:22 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 10:16:29 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3cc47ebd2d0efc6a48ddb5b142fa9ea9c1ae4435
Cr-Commit-Position: refs/heads/master@{#14454}

Powered by Google App Engine
This is Rietveld 408576698