OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |