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

Issue 2867713003: Remove hardcoded kValueSizeBytes values from variable-length header extensions. (Closed)

Created:
3 years, 7 months ago by erikvarga1
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman, nisse-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove hardcoded kValueSizeBytes values from variable-length header extensions. Since the RtpStreamId and RepairedRtpStreamId extensions can have variable length, it makes no sense for them to have a constant valueSize field. The header length calculation in RtpHeaderExtensionMap needed to be changed for this because it previously worked with the assumption that all header types have a constant size. Now it's the caller's job to specify the length of the extensions that it might use. BUG=webrtc:7433 Review-Url: https://codereview.webrtc.org/2867713003 Cr-Commit-Position: refs/heads/master@{#18179} Committed: https://chromium.googlesource.com/external/webrtc/+/2788373528ec05ccb3e3107ee67fb12819011f01

Patch Set 1 #

Total comments: 16

Patch Set 2 : Patch 1 #

Total comments: 15

Patch Set 3 : Patch 2 #

Total comments: 10

Patch Set 4 : Patch 3 #

Total comments: 5

Patch Set 5 : Patch 4 #

Total comments: 6

Patch Set 6 : Patch 5 #

Total comments: 7

Patch Set 7 : Patch 6 #

Patch Set 8 : Patch 7 #

Total comments: 1

Patch Set 9 : use RaceChecker instead of ThreadChecker in a few places. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -17 lines) Patch
M webrtc/modules/congestion_controller/delay_based_bwe.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/include/send_side_congestion_controller.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/send_side_congestion_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -3 lines 0 comments Download
M webrtc/modules/pacing/packet_router.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/pacing/packet_router.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 52 (27 generated)
erikvarga
3 years, 7 months ago (2017-05-08 15:29:41 UTC) #4
danilchap
Nice solution! https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/flexfec_sender.h File webrtc/modules/rtp_rtcp/include/flexfec_sender.h (right): https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/flexfec_sender.h#newcode62 webrtc/modules/rtp_rtcp/include/flexfec_sender.h:62: // Returns the overhead, per packet, for ...
3 years, 7 months ago (2017-05-08 16:25:06 UTC) #6
erikvarga1
https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/flexfec_sender.h File webrtc/modules/rtp_rtcp/include/flexfec_sender.h (right): https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/flexfec_sender.h#newcode62 webrtc/modules/rtp_rtcp/include/flexfec_sender.h:62: // Returns the overhead, per packet, for FlexFEC. On ...
3 years, 7 months ago (2017-05-09 11:40:03 UTC) #7
danilchap
https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h File webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h (right): https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h#newcode131 webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h:131: struct RTPExtensionSizeInfo { On 2017/05/09 11:40:03, erikvarga1 wrote: > ...
3 years, 7 months ago (2017-05-09 12:33:49 UTC) #8
erikvarga1
https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h File webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h (right): https://codereview.webrtc.org/2867713003/diff/1/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h#newcode131 webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h:131: struct RTPExtensionSizeInfo { On 2017/05/09 12:33:48, danilchap wrote: > ...
3 years, 7 months ago (2017-05-09 13:30:31 UTC) #9
danilchap
lgtm % nits https://codereview.webrtc.org/2867713003/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.h File webrtc/modules/rtp_rtcp/source/rtp_sender.h (right): https://codereview.webrtc.org/2867713003/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_sender.h#newcode67 webrtc/modules/rtp_rtcp/source/rtp_sender.h:67: static rtc::ArrayView<const RtpExtensionSize> FecExtensionSizes(); On 2017/05/09 ...
3 years, 7 months ago (2017-05-09 14:45:22 UTC) #10
erikvarga1
https://codereview.webrtc.org/2867713003/diff/40001/webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h File webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h (right): https://codereview.webrtc.org/2867713003/diff/40001/webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h#newcode59 webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h:59: MOCK_CONST_METHOD1(MaxPayloadSize, On 2017/05/09 14:45:22, danilchap wrote: > remove Done. ...
3 years, 7 months ago (2017-05-09 15:19:42 UTC) #11
brandtr
https://codereview.webrtc.org/2867713003/diff/60001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h File webrtc/modules/rtp_rtcp/include/rtp_rtcp.h (left): https://codereview.webrtc.org/2867713003/diff/60001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h#oldcode131 webrtc/modules/rtp_rtcp/include/rtp_rtcp.h:131: virtual size_t MaxPayloadSize() const = 0; I find the ...
3 years, 7 months ago (2017-05-10 11:12:38 UTC) #18
erikvarga1
https://codereview.webrtc.org/2867713003/diff/60001/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc File webrtc/modules/rtp_rtcp/source/flexfec_sender.cc (right): https://codereview.webrtc.org/2867713003/diff/60001/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc#newcode152 webrtc/modules/rtp_rtcp/source/flexfec_sender.cc:152: return rtp_header_extension_map_.GetTotalLengthInBytes(extension_sizes) + On 2017/05/10 11:12:37, brandtr wrote: > ...
3 years, 7 months ago (2017-05-10 13:14:21 UTC) #19
danilchap
https://codereview.webrtc.org/2867713003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2867713003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode175 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:175: sizeof(kExtensionSizes)); sizeof would return size in bytes, but array ...
3 years, 7 months ago (2017-05-10 13:27:13 UTC) #20
brandtr
https://codereview.webrtc.org/2867713003/diff/60001/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc File webrtc/modules/rtp_rtcp/source/flexfec_sender.cc (right): https://codereview.webrtc.org/2867713003/diff/60001/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc#newcode152 webrtc/modules/rtp_rtcp/source/flexfec_sender.cc:152: return rtp_header_extension_map_.GetTotalLengthInBytes(extension_sizes) + On 2017/05/10 13:14:21, erikvarga1 wrote: > ...
3 years, 7 months ago (2017-05-10 14:36:27 UTC) #21
erikvarga1
https://codereview.webrtc.org/2867713003/diff/80001/webrtc/modules/rtp_rtcp/include/flexfec_sender.h File webrtc/modules/rtp_rtcp/include/flexfec_sender.h (right): https://codereview.webrtc.org/2867713003/diff/80001/webrtc/modules/rtp_rtcp/include/flexfec_sender.h#newcode65 webrtc/modules/rtp_rtcp/include/flexfec_sender.h:65: // to calculate the RTP header extension overhead and ...
3 years, 7 months ago (2017-05-10 15:39:31 UTC) #22
danilchap
https://codereview.webrtc.org/2867713003/diff/100001/webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc File webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc (right): https://codereview.webrtc.org/2867713003/diff/100001/webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc#newcode287 webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc:287: kRtpOneByteHeaderLength + 3*kExtensionHeaderLength); git cl format to add spaces ...
3 years, 7 months ago (2017-05-10 18:15:10 UTC) #23
brandtr
lgtm. Thanks for making the changes to FlexfecSender! Also added a small suggestion. https://codereview.webrtc.org/2867713003/diff/100001/webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc File ...
3 years, 7 months ago (2017-05-10 19:23:06 UTC) #24
erikvarga1
https://codereview.webrtc.org/2867713003/diff/100001/webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc File webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc (right): https://codereview.webrtc.org/2867713003/diff/100001/webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc#newcode287 webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc:287: kRtpOneByteHeaderLength + 3*kExtensionHeaderLength); On 2017/05/10 19:23:06, brandtr wrote: > ...
3 years, 7 months ago (2017-05-11 08:40:14 UTC) #25
danilchap
Stefan, can you take a quick look at webrtc/test/fuzzers
3 years, 7 months ago (2017-05-11 12:55:28 UTC) #32
erikvarga1
https://codereview.webrtc.org/2867713003/diff/140001/webrtc/test/fuzzers/flexfec_sender_fuzzer.cc File webrtc/test/fuzzers/flexfec_sender_fuzzer.cc (right): https://codereview.webrtc.org/2867713003/diff/140001/webrtc/test/fuzzers/flexfec_sender_fuzzer.cc#newcode39 webrtc/test/fuzzers/flexfec_sender_fuzzer.cc:39: kNoRtpHeaderExtensions, kNoRtpHeaderExtensionSizes, I've added the missing new param to ...
3 years, 7 months ago (2017-05-11 12:59:38 UTC) #33
brandtr
On 2017/05/11 12:55:28, danilchap wrote: > Stefan, can you take a quick look at webrtc/test/fuzzers ...
3 years, 7 months ago (2017-05-11 13:14:33 UTC) #34
danilchap
Magnus, do you mind approving small change in test/fuzzers ? (side note: may be time ...
3 years, 7 months ago (2017-05-11 13:23:04 UTC) #36
holmer
lgtm for webrtc/fuzzers
3 years, 7 months ago (2017-05-17 11:21:21 UTC) #41
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/2867713003/140001
3 years, 7 months ago (2017-05-17 11:28:32 UTC) #44
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/17120)
3 years, 7 months ago (2017-05-17 11:33:55 UTC) #46
stefan-webrtc
lgtm
3 years, 7 months ago (2017-05-17 11:52:58 UTC) #47
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/2867713003/140001
3 years, 7 months ago (2017-05-17 11:56:16 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 12:08:45 UTC) #52
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/external/webrtc/+/2788373528ec05ccb3e3107ee...

Powered by Google App Engine
This is Rietveld 408576698