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

Unified Diff: webrtc/modules/rtp_rtcp/source/flexfec_sender.cc

Issue 2867713003: Remove hardcoded kValueSizeBytes values from variable-length header extensions. (Closed)
Patch Set: Patch 3 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/source/flexfec_sender.cc
diff --git a/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc b/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc
index 4aec05662fdaae852192570d7c9ca64dcb4a2776..03ca2b80b66b5ecc1af57e4061a1cc813674dbdb 100644
--- a/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc
+++ b/webrtc/modules/rtp_rtcp/source/flexfec_sender.cc
@@ -147,8 +147,9 @@ std::vector<std::unique_ptr<RtpPacketToSend>> FlexfecSender::GetFecPackets() {
}
// The overhead is BWE RTP header extensions and FlexFEC header.
-size_t FlexfecSender::MaxPacketOverhead() const {
- return rtp_header_extension_map_.GetTotalLengthInBytes() +
+size_t FlexfecSender::MaxPacketOverhead(
+ rtc::ArrayView<const RtpExtensionSize> extension_sizes) const {
+ return rtp_header_extension_map_.GetTotalLengthInBytes(extension_sizes) +
brandtr 2017/05/10 11:12:37 I'm not familiar with the RID extension, but in th
erikvarga1 2017/05/10 13:14:21 Yeah, stream IDs aren't used here (or in padding p
brandtr 2017/05/10 14:36:27 Thanks!
kFlexfecMaxHeaderSize;
}

Powered by Google App Engine
This is Rietveld 408576698