Index: webrtc/modules/audio_coding/main/acm2/acm_receiver_unittest_oldapi.cc |
diff --git a/webrtc/modules/audio_coding/main/acm2/acm_receiver_unittest_oldapi.cc b/webrtc/modules/audio_coding/main/acm2/acm_receiver_unittest_oldapi.cc |
index 64344833407e6fadd610202c337a3f807a257a6e..dae24a3320ee7f2210724b779e57cbff3d78653b 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/acm_receiver_unittest_oldapi.cc |
+++ b/webrtc/modules/audio_coding/main/acm2/acm_receiver_unittest_oldapi.cc |
@@ -88,8 +88,8 @@ class AcmReceiverTestOldApi : public AudioPacketizationCallback, |
void TearDown() override {} |
void InsertOnePacketOfSilence(int codec_id) { |
- CodecInst codec; |
- ACMCodecDB::Codec(codec_id, &codec); |
+ CodecInst codec = |
+ *RentACodec::CodecInstById(*RentACodec::CodecIdFromIndex(codec_id)); |
if (timestamp_ == 0) { // This is the first time inserting audio. |
ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); |
} else { |