| Index: webrtc/modules/audio_coding/neteq/decoder_database.h
|
| diff --git a/webrtc/modules/audio_coding/neteq/decoder_database.h b/webrtc/modules/audio_coding/neteq/decoder_database.h
|
| index 14548749bf83095953377f6072ab9b570770bfbd..51098b6213875402f73e23d7e9a87bd4db131ff8 100644
|
| --- a/webrtc/modules/audio_coding/neteq/decoder_database.h
|
| +++ b/webrtc/modules/audio_coding/neteq/decoder_database.h
|
| @@ -59,10 +59,14 @@ class DecoderDatabase {
|
| void DropDecoder() const { decoder_.reset(); }
|
|
|
| int SampleRateHz() const {
|
| - RTC_DCHECK_EQ(1, !!decoder_ + !!external_decoder_ + !!cng_decoder_);
|
| - return decoder_ ? decoder_->SampleRateHz()
|
| - : external_decoder_ ? external_decoder_->SampleRateHz()
|
| - : cng_decoder_->sample_rate_hz;
|
| + const AudioDecoder *decoder = GetDecoder();
|
| + RTC_DCHECK_EQ(1, !!decoder + !!cng_decoder_);
|
| + return decoder ? decoder->SampleRateHz() : cng_decoder_->sample_rate_hz;
|
| + }
|
| +
|
| + const SdpAudioFormat& GetFormat() const {
|
| + RTC_DCHECK(audio_format_);
|
| + return *audio_format_;
|
| }
|
|
|
| // Returns true if |codec_type| is comfort noise.
|
|
|