Index: webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
index d4c1cd1e1fd7ccfeeadbb611c82b7f16eb51fcd9..23da9cac9586304c2de204a3916dbeaba62f4684 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
@@ -614,13 +614,10 @@ std::unique_ptr<rtcp::RtcpPacket> RTCPSender::BuildTMMBR( |
// add current tuple |
candidateSet->SetEntry(lengthOfBoundingSet, tmmbr_send_, packet_oh_send_, |
ssrc_); |
- int numCandidates = lengthOfBoundingSet + 1; |
// find bounding set |
- TMMBRSet* boundingSet = nullptr; |
- int numBoundingSet = tmmbr_help.FindTMMBRBoundingSet(boundingSet); |
- if (numBoundingSet > 0 || numBoundingSet <= numCandidates) |
- tmmbrOwner = tmmbr_help.IsOwner(ssrc_, numBoundingSet); |
+ std::vector<rtcp::TmmbItem> bounding = tmmbr_help.FindTMMBRBoundingSet(); |
+ tmmbrOwner = TMMBRHelp::IsOwner(bounding, ssrc_); |
if (!tmmbrOwner) { |
// Did not enter bounding set, no meaning to send this request. |
return nullptr; |