Chromium Code Reviews| 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; |
|
ossu
2016/09/20 15:30:56
I don't think we should be able to keep anything i
kwiberg-webrtc
2016/09/20 16:30:29
I agree. We currently do, though, and it isn't a p
ossu
2016/09/21 10:46:10
Not that it matters enormously, but if so, why don
kwiberg-webrtc
2016/09/21 11:51:57
Because of the two equivalent return types const O
ossu
2016/09/21 12:00:56
I'm not sure I agree with you, but I'm also not su
|
| } |
| // Returns true if |codec_type| is comfort noise. |