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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 LOG(LS_VERBOSE) << "Generated " << fec_packets_to_send.size() 140 LOG(LS_VERBOSE) << "Generated " << fec_packets_to_send.size()
141 << " FlexFEC packets with payload type: " << payload_type_ 141 << " FlexFEC packets with payload type: " << payload_type_
142 << " and SSRC: " << ssrc_ << "."; 142 << " and SSRC: " << ssrc_ << ".";
143 last_generated_packet_ms_ = now_ms; 143 last_generated_packet_ms_ = now_ms;
144 } 144 }
145 145
146 return fec_packets_to_send; 146 return fec_packets_to_send;
147 } 147 }
148 148
149 // The overhead is BWE RTP header extensions and FlexFEC header. 149 // The overhead is BWE RTP header extensions and FlexFEC header.
150 size_t FlexfecSender::MaxPacketOverhead() const { 150 size_t FlexfecSender::MaxPacketOverhead(
151 return rtp_header_extension_map_.GetTotalLengthInBytes() + 151 rtc::ArrayView<const RtpExtensionSize> extension_sizes) const {
152 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!
152 kFlexfecMaxHeaderSize; 153 kFlexfecMaxHeaderSize;
153 } 154 }
154 155
155 } // namespace webrtc 156 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698