Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: webrtc/modules/audio_coding/neteq/decoder_database.h

Issue 2351183002: AcmReceiver: Eliminate AcmReceiver::decoders_ (Closed)
Patch Set: case-insensitive string comparison Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « webrtc/modules/audio_coding/codecs/audio_format.cc ('k') | webrtc/modules/audio_coding/neteq/include/neteq.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698