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

Issue 1578713002: [rtp_rtcp] rtcp::Tmmbn moved into own file (Closed)

Created:
4 years, 11 months ago by danilchap
Modified:
4 years, 11 months ago
Reviewers:
åsapersson
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

[rtp_rtcp] rtcp::Tmmbn moved into own file explicetly unchanged. BUG=webrtc:5260 R=åsapersson Committed: https://crrev.com/ef3d805f6e50bc488f8e4e9e353068b78c73d17f Cr-Commit-Position: refs/heads/master@{#11201}

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -158 lines) Patch
M webrtc/modules/modules.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/rtp_rtcp.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_packet.h View 1 chunk +0 lines, -46 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_packet.cc View 3 chunks +0 lines, -53 lines 0 comments Download
A webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h View 1 chunk +60 lines, -0 lines 3 comments Download
A webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.cc View 1 chunk +119 lines, -0 lines 4 comments Download
A webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn_unittest.cc View 1 chunk +84 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_packet_unittest.cc View 2 chunks +0 lines, -59 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
danilchap
4 years, 11 months ago (2016-01-11 09:17:03 UTC) #1
åsapersson
lgtm
4 years, 11 months ago (2016-01-11 09:56:10 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578713002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578713002/1
4 years, 11 months ago (2016-01-11 10:36:29 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-11 11:31:12 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/ef3d805f6e50bc488f8e4e9e353068b78c73d17f Cr-Commit-Position: refs/heads/master@{#11201}
4 years, 11 months ago (2016-01-11 11:31:25 UTC) #7
tommi
4 years, 11 months ago (2016-01-11 15:45:40 UTC) #8
Message was sent while issue was closed.
drive by minor requests/suggestions for upcoming changes

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
File webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.cc (right):

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.cc:27: void
AssignUWord32(uint8_t* buffer, size_t* offset, uint32_t value) {
empty line above this one

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.cc:91: assert(overhead <=
0x1ff);
use RTC_DCHECK

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.cc:92: if (tmmbn_items_.size()
>= kMaxNumberOfTmmbrs) {
assuming single threaded?  If so, please use ThreadChecker

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.cc:108: while (*index +
BlockLength() > max_length) {
would also be good to state the threading model here.

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
File webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h (right):

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h:27: memset(&tmmbn_, 0,
sizeof(tmmbn_));
fyi - I think you should be able to do the same thing this way:

Tmmbn() : RtcpPacket(), tmmbn_() {}

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h:30: virtual ~Tmmbn() {}
override

https://codereview.webrtc.org/1578713002/diff/1/webrtc/modules/rtp_rtcp/sourc...
webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h:33: tmmbn_.SenderSSRC = ssrc;
doesn't look like this is thread safe. On which thread is this called?

Powered by Google App Engine
This is Rietveld 408576698