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 3728d1da90c04d68ed52eb09e451eaaef36a29cd..296d059f733d91bd231c7f41854722ffa35bdf7b 100644 |
--- a/webrtc/modules/audio_coding/neteq/decoder_database.h |
+++ b/webrtc/modules/audio_coding/neteq/decoder_database.h |
@@ -64,9 +64,8 @@ class DecoderDatabase { |
return decoder ? decoder->SampleRateHz() : cng_decoder_->sample_rate_hz; |
} |
- const SdpAudioFormat& GetFormat() const { |
- RTC_DCHECK(audio_format_); |
- return *audio_format_; |
+ const SdpAudioFormat* GetFormat() const { |
+ return audio_format_ ? &*audio_format_ : nullptr; |
} |
// Returns true if |codec_type| is comfort noise. |