| Index: webrtc/modules/audio_coding/main/acm2/acm_receiver.cc
|
| diff --git a/webrtc/modules/audio_coding/main/acm2/acm_receiver.cc b/webrtc/modules/audio_coding/main/acm2/acm_receiver.cc
|
| index b8e8b9d4bc7fe5cb8c401b4c5a8afc412f5abcb6..34726ccb204b6f0b91f4f2736509743b463f55f4 100644
|
| --- a/webrtc/modules/audio_coding/main/acm2/acm_receiver.cc
|
| +++ b/webrtc/modules/audio_coding/main/acm2/acm_receiver.cc
|
| @@ -178,7 +178,10 @@ int AcmReceiver::InsertPacket(const WebRtcRTPHeader& rtp_header,
|
| << " is not registered.";
|
| return -1;
|
| }
|
| - const int sample_rate_hz = ACMCodecDB::CodecFreq(decoder->acm_codec_id);
|
| + const int sample_rate_hz = [&decoder] {
|
| + const auto ci = RentACodec::CodecIdFromIndex(decoder->acm_codec_id);
|
| + return ci ? RentACodec::CodecInstById(*ci)->plfreq : -1;
|
| + }();
|
| receive_timestamp = NowInTimestamp(sample_rate_hz);
|
|
|
| // If this is a CNG while the audio codec is not mono, skip pushing in
|
|
|