OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include "webrtc/video/video_send_stream.h" | 10 #include "webrtc/video/video_send_stream.h" |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
| 13 #include <cmath> |
13 #include <sstream> | 14 #include <sstream> |
14 #include <string> | 15 #include <string> |
15 #include <utility> | 16 #include <utility> |
16 #include <vector> | 17 #include <vector> |
17 | 18 |
18 #include "webrtc/common_types.h" | 19 #include "webrtc/common_types.h" |
19 #include "webrtc/base/checks.h" | 20 #include "webrtc/base/checks.h" |
20 #include "webrtc/base/file.h" | 21 #include "webrtc/base/file.h" |
21 #include "webrtc/base/logging.h" | 22 #include "webrtc/base/logging.h" |
22 #include "webrtc/base/trace_event.h" | 23 #include "webrtc/base/trace_event.h" |
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 const uint16_t mtu = static_cast<uint16_t>( | 1251 const uint16_t mtu = static_cast<uint16_t>( |
1251 config_->rtp.max_packet_size + transport_overhead_bytes_per_packet); | 1252 config_->rtp.max_packet_size + transport_overhead_bytes_per_packet); |
1252 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 1253 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
1253 rtp_rtcp->SetTransportOverhead(transport_overhead_bytes_per_packet); | 1254 rtp_rtcp->SetTransportOverhead(transport_overhead_bytes_per_packet); |
1254 rtp_rtcp->SetMaxTransferUnit(mtu); | 1255 rtp_rtcp->SetMaxTransferUnit(mtu); |
1255 } | 1256 } |
1256 } | 1257 } |
1257 | 1258 |
1258 } // namespace internal | 1259 } // namespace internal |
1259 } // namespace webrtc | 1260 } // namespace webrtc |
OLD | NEW |