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

Side by Side Diff: webrtc/modules/video_coding/codec_database.cc

Issue 2535593002: RTC_[D]CHECK_op: Remove "u" suffix on integer constants (Closed)
Patch Set: Created 4 years 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bool VCMCodecDataBase::SetSendCodec(const VideoCodec* send_codec, 191 bool VCMCodecDataBase::SetSendCodec(const VideoCodec* send_codec,
192 int number_of_cores, 192 int number_of_cores,
193 size_t max_payload_size) { 193 size_t max_payload_size) {
194 RTC_DCHECK(send_codec); 194 RTC_DCHECK(send_codec);
195 if (max_payload_size == 0) { 195 if (max_payload_size == 0) {
196 max_payload_size = kDefaultPayloadSize; 196 max_payload_size = kDefaultPayloadSize;
197 } 197 }
198 RTC_DCHECK_GE(number_of_cores, 1); 198 RTC_DCHECK_GE(number_of_cores, 1);
199 RTC_DCHECK_GE(send_codec->plType, 1); 199 RTC_DCHECK_GE(send_codec->plType, 1);
200 // Make sure the start bit rate is sane... 200 // Make sure the start bit rate is sane...
201 RTC_DCHECK_LE(send_codec->startBitrate, 1000000u); 201 RTC_DCHECK_LE(send_codec->startBitrate, 1000000);
202 RTC_DCHECK(send_codec->codecType != kVideoCodecUnknown); 202 RTC_DCHECK(send_codec->codecType != kVideoCodecUnknown);
203 bool reset_required = pending_encoder_reset_; 203 bool reset_required = pending_encoder_reset_;
204 if (number_of_cores_ != number_of_cores) { 204 if (number_of_cores_ != number_of_cores) {
205 number_of_cores_ = number_of_cores; 205 number_of_cores_ = number_of_cores;
206 reset_required = true; 206 reset_required = true;
207 } 207 }
208 if (max_payload_size_ != max_payload_size) { 208 if (max_payload_size_ != max_payload_size) {
209 max_payload_size_ = max_payload_size; 209 max_payload_size_ = max_payload_size;
210 reset_required = true; 210 reset_required = true;
211 } 211 }
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 601
602 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( 602 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem(
603 uint8_t payload_type) const { 603 uint8_t payload_type) const {
604 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); 604 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type);
605 if (it != dec_external_map_.end()) { 605 if (it != dec_external_map_.end()) {
606 return (*it).second; 606 return (*it).second;
607 } 607 }
608 return nullptr; 608 return nullptr;
609 } 609 }
610 } // namespace webrtc 610 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698