Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2256 config_.rtp.rtx_associated_payload_types[recv_codec.rtx_payload_type] = | 2256 config_.rtp.rtx_associated_payload_types[recv_codec.rtx_payload_type] = |
| 2257 recv_codec.codec.id; | 2257 recv_codec.codec.id; |
| 2258 | 2258 |
| 2259 const bool did_insert = | 2259 const bool did_insert = |
| 2260 allocated_decoders_ | 2260 allocated_decoders_ |
| 2261 .insert(std::make_pair(video_format, std::move(new_decoder))) | 2261 .insert(std::make_pair(video_format, std::move(new_decoder))) |
| 2262 .second; | 2262 .second; |
| 2263 RTC_CHECK(did_insert); | 2263 RTC_CHECK(did_insert); |
| 2264 } | 2264 } |
| 2265 | 2265 |
| 2266 config_.rtp.ulpfec = recv_codecs.front().ulpfec; | 2266 config_.rtp.ulpfec_payload_type = |
| 2267 recv_codecs.front().ulpfec.ulpfec_payload_type; | |
|
brandtr
2017/09/21 08:11:33
Maybe nicer to keep a const ref to |recv_codecs.fr
nisse-webrtc
2017/09/21 08:37:46
Done.
| |
| 2268 config_.rtp.red_payload_type = recv_codecs.front().ulpfec.red_payload_type; | |
| 2267 | 2269 |
| 2268 config_.rtp.nack.rtp_history_ms = | 2270 config_.rtp.nack.rtp_history_ms = |
| 2269 HasNack(recv_codecs.begin()->codec) ? kNackHistoryMs : 0; | 2271 HasNack(recv_codecs.begin()->codec) ? kNackHistoryMs : 0; |
|
nisse-webrtc
2017/09/21 08:37:46
And here for some reason |begin()->| is used inste
brandtr
2017/09/21 08:45:22
I believe so. This is probably an artefact of diff
| |
| 2270 if (config_.rtp.ulpfec.red_rtx_payload_type != -1) { | 2272 if (recv_codecs.front().ulpfec.red_rtx_payload_type != -1) { |
| 2271 config_.rtp | 2273 config_.rtp.rtx_associated_payload_types[recv_codecs.front() |
| 2272 .rtx_associated_payload_types[config_.rtp.ulpfec.red_rtx_payload_type] = | 2274 .ulpfec.red_rtx_payload_type] = |
| 2273 config_.rtp.ulpfec.red_payload_type; | 2275 recv_codecs.front().ulpfec.red_payload_type; |
| 2274 } | 2276 } |
| 2275 } | 2277 } |
| 2276 | 2278 |
| 2277 void WebRtcVideoChannel::WebRtcVideoReceiveStream::ConfigureFlexfecCodec( | 2279 void WebRtcVideoChannel::WebRtcVideoReceiveStream::ConfigureFlexfecCodec( |
| 2278 int flexfec_payload_type) { | 2280 int flexfec_payload_type) { |
| 2279 flexfec_config_.payload_type = flexfec_payload_type; | 2281 flexfec_config_.payload_type = flexfec_payload_type; |
| 2280 } | 2282 } |
| 2281 | 2283 |
| 2282 void WebRtcVideoChannel::WebRtcVideoReceiveStream::SetLocalSsrc( | 2284 void WebRtcVideoChannel::WebRtcVideoReceiveStream::SetLocalSsrc( |
| 2283 uint32_t local_ssrc) { | 2285 uint32_t local_ssrc) { |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2681 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - | 2683 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - |
| 2682 1); | 2684 1); |
| 2683 } | 2685 } |
| 2684 | 2686 |
| 2685 std::vector<webrtc::VideoStream> streams; | 2687 std::vector<webrtc::VideoStream> streams; |
| 2686 streams.push_back(stream); | 2688 streams.push_back(stream); |
| 2687 return streams; | 2689 return streams; |
| 2688 } | 2690 } |
| 2689 | 2691 |
| 2690 } // namespace cricket | 2692 } // namespace cricket |
| OLD | NEW |