| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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/tools/neteq_test.h" | 11 #include "webrtc/modules/audio_coding/neteq/tools/neteq_test.h" |
| 12 | 12 |
| 13 #include <iostream> | 13 #include <iostream> |
| 14 | 14 |
| 15 #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" | 15 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 void DefaultNetEqTestErrorCallback::OnInsertPacketError( | 20 void DefaultNetEqTestErrorCallback::OnInsertPacketError( |
| 21 int error_code, | 21 int error_code, |
| 22 const NetEqInput::PacketData& packet) { | 22 const NetEqInput::PacketData& packet) { |
| 23 if (error_code == NetEq::kUnknownRtpPayloadType) { | 23 if (error_code == NetEq::kUnknownRtpPayloadType) { |
| 24 std::cerr << "RTP Payload type " | 24 std::cerr << "RTP Payload type " |
| 25 << static_cast<int>(packet.header.header.payloadType) | 25 << static_cast<int>(packet.header.header.payloadType) |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 neteq_->RegisterExternalDecoder(c.second.decoder, c.second.codec, | 127 neteq_->RegisterExternalDecoder(c.second.decoder, c.second.codec, |
| 128 c.second.codec_name, c.first), | 128 c.second.codec_name, c.first), |
| 129 NetEq::kOK) | 129 NetEq::kOK) |
| 130 << "Cannot register " << c.second.codec_name << " to payload type " | 130 << "Cannot register " << c.second.codec_name << " to payload type " |
| 131 << c.first; | 131 << c.first; |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace test | 135 } // namespace test |
| 136 } // namespace webrtc | 136 } // namespace webrtc |
| OLD | NEW |