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 |
11 #include "webrtc/modules/audio_coding/neteq/decoder_database.h" | 11 #include "webrtc/modules/audio_coding/neteq/decoder_database.h" |
12 | 12 |
13 #include <utility> // pair | 13 #include <utility> // pair |
14 | 14 |
| 15 #include "webrtc/api/audio_codecs/audio_decoder.h" |
15 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
16 #include "webrtc/base/logging.h" | 17 #include "webrtc/base/logging.h" |
17 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h" | |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 DecoderDatabase::DecoderDatabase( | 21 DecoderDatabase::DecoderDatabase( |
22 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory) | 22 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory) |
23 : active_decoder_type_(-1), | 23 : active_decoder_type_(-1), |
24 active_cng_decoder_type_(-1), | 24 active_cng_decoder_type_(-1), |
25 decoder_factory_(decoder_factory) {} | 25 decoder_factory_(decoder_factory) {} |
26 | 26 |
27 DecoderDatabase::~DecoderDatabase() = default; | 27 DecoderDatabase::~DecoderDatabase() = default; |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Payload type is not found. | 317 // Payload type is not found. |
318 LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type " | 318 LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type " |
319 << static_cast<int>(it->payload_type); | 319 << static_cast<int>(it->payload_type); |
320 return kDecoderNotFound; | 320 return kDecoderNotFound; |
321 } | 321 } |
322 } | 322 } |
323 return kOK; | 323 return kOK; |
324 } | 324 } |
325 | 325 |
326 } // namespace webrtc | 326 } // namespace webrtc |
OLD | NEW |