OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 DecoderDatabase::~DecoderDatabase() {} | 25 DecoderDatabase::~DecoderDatabase() {} |
26 | 26 |
27 DecoderDatabase::DecoderInfo::DecoderInfo(NetEqDecoder ct, | 27 DecoderDatabase::DecoderInfo::DecoderInfo(NetEqDecoder ct, |
28 const std::string& nm, | 28 const std::string& nm, |
29 int fs, | 29 int fs, |
30 AudioDecoder* ext_dec) | 30 AudioDecoder* ext_dec) |
31 : codec_type(ct), | 31 : codec_type(ct), |
32 name(nm), | 32 name(nm), |
33 fs_hz(fs), | 33 fs_hz(fs), |
34 rtp_sample_rate_hz(fs), | |
35 external_decoder(ext_dec) {} | 34 external_decoder(ext_dec) {} |
36 | 35 |
37 DecoderDatabase::DecoderInfo::DecoderInfo(DecoderInfo&&) = default; | 36 DecoderDatabase::DecoderInfo::DecoderInfo(DecoderInfo&&) = default; |
38 DecoderDatabase::DecoderInfo::~DecoderInfo() = default; | 37 DecoderDatabase::DecoderInfo::~DecoderInfo() = default; |
39 | 38 |
40 AudioDecoder* DecoderDatabase::DecoderInfo::GetDecoder() { | 39 AudioDecoder* DecoderDatabase::DecoderInfo::GetDecoder() { |
41 if (external_decoder) { | 40 if (external_decoder) { |
42 RTC_DCHECK(!decoder_); | 41 RTC_DCHECK(!decoder_); |
43 return external_decoder; | 42 return external_decoder; |
44 } | 43 } |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type " | 258 LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type " |
260 << static_cast<int>((*it)->header.payloadType); | 259 << static_cast<int>((*it)->header.payloadType); |
261 return kDecoderNotFound; | 260 return kDecoderNotFound; |
262 } | 261 } |
263 } | 262 } |
264 return kOK; | 263 return kOK; |
265 } | 264 } |
266 | 265 |
267 | 266 |
268 } // namespace webrtc | 267 } // namespace webrtc |
OLD | NEW |