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

Side by Side Diff: webrtc/video/rtp_video_stream_receiver.cc

Issue 3000273002: Reverse |rtx_payload_types| map, and rename. (Closed)
Patch Set: Created 3 years, 4 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 static const int kMaxPacketAgeToNack = 450; 142 static const int kMaxPacketAgeToNack = 450;
143 const int max_reordering_threshold = (config_.rtp.nack.rtp_history_ms > 0) 143 const int max_reordering_threshold = (config_.rtp.nack.rtp_history_ms > 0)
144 ? kMaxPacketAgeToNack 144 ? kMaxPacketAgeToNack
145 : kDefaultMaxReorderingThreshold; 145 : kDefaultMaxReorderingThreshold;
146 rtp_receive_statistics_->SetMaxReorderingThreshold(max_reordering_threshold); 146 rtp_receive_statistics_->SetMaxReorderingThreshold(max_reordering_threshold);
147 147
148 if (config_.rtp.rtx_ssrc) { 148 if (config_.rtp.rtx_ssrc) {
149 rtp_payload_registry_.SetRtxSsrc(config_.rtp.rtx_ssrc); 149 rtp_payload_registry_.SetRtxSsrc(config_.rtp.rtx_ssrc);
150 150
151 for (const auto& kv : config_.rtp.rtx_payload_types) { 151 for (const auto& kv : config_.rtp.media_pt_by_rtx_pt) {
152 RTC_DCHECK(kv.second != 0); 152 RTC_DCHECK(kv.second != 0);
danilchap 2017/08/21 14:11:26 change DCHECK to validate rtx payload type (media
nisse-webrtc 2017/08/22 07:11:01 Done, also changed to RTC_DCHECK_NE.
153 rtp_payload_registry_.SetRtxPayloadType(kv.second, kv.first); 153 rtp_payload_registry_.SetRtxPayloadType(kv.first, kv.second);
154 } 154 }
155 } 155 }
156 156
157 if (IsUlpfecEnabled()) { 157 if (IsUlpfecEnabled()) {
158 VideoCodec ulpfec_codec = {}; 158 VideoCodec ulpfec_codec = {};
159 ulpfec_codec.codecType = kVideoCodecULPFEC; 159 ulpfec_codec.codecType = kVideoCodecULPFEC;
160 strncpy(ulpfec_codec.plName, "ulpfec", sizeof(ulpfec_codec.plName)); 160 strncpy(ulpfec_codec.plName, "ulpfec", sizeof(ulpfec_codec.plName));
161 ulpfec_codec.plType = config_.rtp.ulpfec.ulpfec_payload_type; 161 ulpfec_codec.plType = config_.rtp.ulpfec.ulpfec_payload_type;
162 RTC_CHECK(AddReceiveCodec(ulpfec_codec)); 162 RTC_CHECK(AddReceiveCodec(ulpfec_codec));
163 } 163 }
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 return; 715 return;
716 716
717 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) 717 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str()))
718 return; 718 return;
719 719
720 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), 720 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(),
721 sprop_decoder.pps_nalu()); 721 sprop_decoder.pps_nalu());
722 } 722 }
723 723
724 } // namespace webrtc 724 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698