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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2020353003: AudioDecoderIsacT: Require caller to always specify sample rate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index b514dd71d0814a677ce96d489dcb819f660b8dcf..a17f546f4ed7a6f7b4b59c75e22fb1b0afa62200 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -49,8 +49,8 @@ namespace {
bool RegisterReceiveCodec(std::unique_ptr<AudioCodingModule>* acm,
acm2::RentACodec* rac,
const CodecInst& ci) {
- const int result =
- (*acm)->RegisterReceiveCodec(ci, [&] { return rac->RentIsacDecoder(); });
+ const int result = (*acm)->RegisterReceiveCodec(
+ ci, [&] { return rac->RentIsacDecoder(ci.plfreq); });
return result == 0;
}
« webrtc/modules/utility/source/coder.cc ('K') | « webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698