Index: webrtc/call/call_perf_tests.cc |
diff --git a/webrtc/call/call_perf_tests.cc b/webrtc/call/call_perf_tests.cc |
index 56c6ba3535742e0ace64843f4ff8a15cea776128..1738bae1ebc345cf9cff0c013d20fc13a598de64 100644 |
--- a/webrtc/call/call_perf_tests.cc |
+++ b/webrtc/call/call_perf_tests.cc |
@@ -19,6 +19,7 @@ |
#include "webrtc/call/call.h" |
#include "webrtc/config.h" |
#include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
+#include "webrtc/modules/audio_coding/codecs/builtin_audio_encoder_factory.h" |
#include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h" |
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
@@ -216,8 +217,9 @@ void CallPerfTest::TestAudioVideoSync(FecMode fec, |
AudioSendStream::Config audio_send_config(&audio_send_transport); |
audio_send_config.voe_channel_id = send_channel_id; |
audio_send_config.rtp.ssrc = kAudioSendSsrc; |
- audio_send_config.send_codec_spec.codec_inst = |
- CodecInst{103, "ISAC", 16000, 480, 1, 32000}; |
+ audio_send_config.send_codec_spec.payload_type = 103; |
+ audio_send_config.send_codec_spec.format.format = {"ISAC", 16000, 1}; |
+ audio_send_config.encoder_factory = CreateBuiltinAudioEncoderFactory(); |
AudioSendStream* audio_send_stream = |
sender_call_->CreateAudioSendStream(audio_send_config); |