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 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2212 allocated_decoders_.push_back(allocated_decoder); | 2212 allocated_decoders_.push_back(allocated_decoder); |
2213 | 2213 |
2214 webrtc::VideoReceiveStream::Decoder decoder; | 2214 webrtc::VideoReceiveStream::Decoder decoder; |
2215 decoder.decoder = allocated_decoder.decoder; | 2215 decoder.decoder = allocated_decoder.decoder; |
2216 decoder.payload_type = recv_codecs[i].codec.id; | 2216 decoder.payload_type = recv_codecs[i].codec.id; |
2217 decoder.payload_name = recv_codecs[i].codec.name; | 2217 decoder.payload_name = recv_codecs[i].codec.name; |
2218 decoder.codec_params = recv_codecs[i].codec.params; | 2218 decoder.codec_params = recv_codecs[i].codec.params; |
2219 config_.decoders.push_back(decoder); | 2219 config_.decoders.push_back(decoder); |
2220 } | 2220 } |
2221 | 2221 |
2222 config_.rtp.rtx_payload_types.clear(); | 2222 config_.rtp.rtx_associated_payload_types.clear(); |
2223 for (const VideoCodecSettings& recv_codec : recv_codecs) { | 2223 for (const VideoCodecSettings& recv_codec : recv_codecs) { |
2224 config_.rtp.rtx_payload_types[recv_codec.codec.id] = | 2224 config_.rtp.rtx_associated_payload_types[recv_codec.rtx_payload_type] = |
2225 recv_codec.rtx_payload_type; | 2225 recv_codec.codec.id; |
2226 } | 2226 } |
2227 | 2227 |
2228 config_.rtp.ulpfec = recv_codecs.front().ulpfec; | 2228 config_.rtp.ulpfec = recv_codecs.front().ulpfec; |
2229 | 2229 |
2230 config_.rtp.nack.rtp_history_ms = | 2230 config_.rtp.nack.rtp_history_ms = |
2231 HasNack(recv_codecs.begin()->codec) ? kNackHistoryMs : 0; | 2231 HasNack(recv_codecs.begin()->codec) ? kNackHistoryMs : 0; |
2232 } | 2232 } |
2233 | 2233 |
2234 void WebRtcVideoChannel::WebRtcVideoReceiveStream::ConfigureFlexfecCodec( | 2234 void WebRtcVideoChannel::WebRtcVideoReceiveStream::ConfigureFlexfecCodec( |
2235 int flexfec_payload_type) { | 2235 int flexfec_payload_type) { |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2649 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - | 2649 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - |
2650 1); | 2650 1); |
2651 } | 2651 } |
2652 | 2652 |
2653 std::vector<webrtc::VideoStream> streams; | 2653 std::vector<webrtc::VideoStream> streams; |
2654 streams.push_back(stream); | 2654 streams.push_back(stream); |
2655 return streams; | 2655 return streams; |
2656 } | 2656 } |
2657 | 2657 |
2658 } // namespace cricket | 2658 } // namespace cricket |
OLD | NEW |