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

Issue 1639253007: Validates sending RTCP before RTP. (Closed)

Created:
4 years, 10 months ago by danilchap
Modified:
4 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, andresp, the sun, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reimplemented fix for bogus RTP timestamp in RTCP packet created before RTP packet. Now it check if rtp timestamp can be calculating instead of checking number of rtp packets. This way it works for reconfigured streams too. It also moved deeper into rtcp_sender class to prevent SR no matter the reason it need to be genereated. This way it prevents creating compound rtcp packets that have to start with Sender Report and Sender Reports as response to (mostly theoretical) sr-request rtcp packet. BUG=webrtc:1600 R=pbos@webrtc.org, stefan@webrtc.org Committed: https://crrev.com/70ffead25675c4761467755f9be844335dd59dba Cr-Commit-Position: refs/heads/master@{#13503}

Patch Set 1 : Added test to reveal 1600 was fixed in common, but not rare case #

Patch Set 2 : reimplemented fix #

Patch Set 3 : adjusted RtpRtcpImplTest to comply with stricter conditions for Sender Report #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : fix tests and receive-only case #

Total comments: 5

Patch Set 8 : rebase & feedback #

Patch Set 9 : comment adjusted. #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Total comments: 10

Patch Set 12 : Comments adjusted according to feedback #

Patch Set 13 : nit #

Patch Set 14 : fix lint error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -42 lines) Patch
M webrtc/modules/rtp_rtcp/source/rtcp_sender.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +28 lines, -10 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +43 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -7 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +11 lines, -1 line 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +58 lines, -22 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
danilchap
4 years, 10 months ago (2016-01-29 19:24:20 UTC) #5
stefan-webrtc
Seems like a good change to me. Comments are only about the tests https://codereview.webrtc.org/1639253007/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc File ...
4 years, 10 months ago (2016-02-01 17:32:08 UTC) #6
danilchap
https://codereview.webrtc.org/1639253007/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc (right): https://codereview.webrtc.org/1639253007/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc#newcode305 webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc:305: } On 2016/02/01 17:32:07, stefan-webrtc (holmer) wrote: > Should ...
4 years, 10 months ago (2016-02-01 18:24:18 UTC) #7
stefan-webrtc
Does this need rebasing? Otherwise I can give it a final look so we can ...
4 years, 7 months ago (2016-05-06 11:00:59 UTC) #8
danilchap
On 2016/05/06 11:00:59, stefan-webrtc (holmer) wrote: > Does this need rebasing? Otherwise I can give ...
4 years, 7 months ago (2016-05-06 15:20:45 UTC) #9
pbos-webrtc
lgtm .. does this need rebasing_ https://codereview.webrtc.org/1639253007/diff/120001/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc File webrtc/modules/rtp_rtcp/source/rtcp_sender.cc (right): https://codereview.webrtc.org/1639253007/diff/120001/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc#newcode438 webrtc/modules/rtp_rtcp/source/rtcp_sender.cc:438: // Timestamp shouldn't ...
4 years, 6 months ago (2016-06-16 11:39:43 UTC) #10
danilchap
https://codereview.webrtc.org/1639253007/diff/120001/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc File webrtc/modules/rtp_rtcp/source/rtcp_sender.cc (right): https://codereview.webrtc.org/1639253007/diff/120001/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc#newcode438 webrtc/modules/rtp_rtcp/source/rtcp_sender.cc:438: // Timestamp shouldn't be esitmated before frame was received. ...
4 years, 6 months ago (2016-06-16 12:05:02 UTC) #11
stefan-webrtc
https://codereview.webrtc.org/1639253007/diff/200001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc (right): https://codereview.webrtc.org/1639253007/diff/200001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc#newcode318 webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc:318: // Sender Report shouldn't be send not as Sr, ...
4 years, 5 months ago (2016-07-20 09:13:32 UTC) #12
stefan-webrtc
4 years, 5 months ago (2016-07-20 09:13:33 UTC) #13
danilchap
https://codereview.webrtc.org/1639253007/diff/200001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc (right): https://codereview.webrtc.org/1639253007/diff/200001/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc#newcode318 webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc:318: // Sender Report shouldn't be send not as Sr, ...
4 years, 5 months ago (2016-07-20 10:09:50 UTC) #14
stefan-webrtc
lgtm
4 years, 5 months ago (2016-07-20 10:20:15 UTC) #15
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/1639253007/240001
4 years, 5 months ago (2016-07-20 10:37:46 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/6914)
4 years, 5 months ago (2016-07-20 10:52:16 UTC) #20
danilchap
4 years, 5 months ago (2016-07-20 13:27:18 UTC) #22
Message was sent while issue was closed.
Committed patchset #14 (id:260001) manually as
70ffead25675c4761467755f9be844335dd59dba (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698