Index: webrtc/modules/utility/source/coder.cc |
diff --git a/webrtc/modules/utility/source/coder.cc b/webrtc/modules/utility/source/coder.cc |
index f72d03b887de9356df67d44bb20f7d8963f868c5..33b5e399c107cc9a6e7d4941d19cf9f93340e3a9 100644 |
--- a/webrtc/modules/utility/source/coder.cc |
+++ b/webrtc/modules/utility/source/coder.cc |
@@ -45,9 +45,8 @@ int32_t AudioCoder::SetEncodeCodec(const CodecInst& codec_inst) { |
} |
int32_t AudioCoder::SetDecodeCodec(const CodecInst& codec_inst) { |
- if (acm_->RegisterReceiveCodec(codec_inst, [&] { |
- return rent_a_codec_.RentIsacDecoder(codec_inst.plfreq); |
- }) == -1) { |
+ if (!acm_->RegisterReceiveCodec(codec_inst.pltype, |
+ CodecInstToSdp(codec_inst))) { |
return -1; |
} |
memcpy(&receive_codec_, &codec_inst, sizeof(CodecInst)); |