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

Unified Diff: webrtc/api/audio_codecs/g722/audio_decoder_g722.cc

Issue 2998263002: Reimplement the builtin audio codec factories using the new stuff in api/ (Closed)
Patch Set: use upper-case Created 3 years, 4 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/api/audio_codecs/g722/audio_decoder_g722.cc
diff --git a/webrtc/api/audio_codecs/g722/audio_decoder_g722.cc b/webrtc/api/audio_codecs/g722/audio_decoder_g722.cc
index 9c4bff71c5b8772430f5b12ef320bd255b840d37..6f3ce97de9c03766b19cf27701a69a91456abd52 100644
--- a/webrtc/api/audio_codecs/g722/audio_decoder_g722.cc
+++ b/webrtc/api/audio_codecs/g722/audio_decoder_g722.cc
@@ -22,7 +22,7 @@ namespace webrtc {
rtc::Optional<AudioDecoderG722::Config> AudioDecoderG722::SdpToConfig(
const SdpAudioFormat& format) {
- return STR_CASE_CMP(format.name.c_str(), "g722") == 0 &&
+ return STR_CASE_CMP(format.name.c_str(), "G722") == 0 &&
format.clockrate_hz == 8000 &&
(format.num_channels == 1 || format.num_channels == 2)
? rtc::Optional<Config>(
@@ -32,7 +32,7 @@ rtc::Optional<AudioDecoderG722::Config> AudioDecoderG722::SdpToConfig(
void AudioDecoderG722::AppendSupportedDecoders(
std::vector<AudioCodecSpec>* specs) {
- specs->push_back({{"g722", 8000, 1}, {16000, 1, 64000}});
+ specs->push_back({{"G722", 8000, 1}, {16000, 1, 64000}});
}
std::unique_ptr<AudioDecoder> AudioDecoderG722::MakeAudioDecoder(
« no previous file with comments | « webrtc/api/audio_codecs/builtin_audio_encoder_factory.cc ('k') | webrtc/api/audio_codecs/g722/audio_encoder_g722.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698