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

Unified Diff: webrtc/modules/utility/source/coder.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/modules/utility/source/coder.cc
diff --git a/webrtc/modules/utility/source/coder.cc b/webrtc/modules/utility/source/coder.cc
index 248cd488b6dea7e16552fcbd42da74adaac94250..f2ae43eb108a939f261ae17646a05c26fd307643 100644
--- a/webrtc/modules/utility/source/coder.cc
+++ b/webrtc/modules/utility/source/coder.cc
@@ -45,8 +45,9 @@ int32_t AudioCoder::SetEncodeCodec(const CodecInst& codec_inst) {
}
int32_t AudioCoder::SetDecodeCodec(const CodecInst& codec_inst) {
- if (acm_->RegisterReceiveCodec(
- codec_inst, [&] { return rent_a_codec_.RentIsacDecoder(); }) == -1) {
+ if (acm_->RegisterReceiveCodec(codec_inst, [&] {
perkj_webrtc 2016/06/01 20:04:40 FYI capture all lambdas are not allowed according
kwiberg-webrtc 2016/06/02 08:23:16 They relaxed the rules slightly (some months ago I
+ return rent_a_codec_.RentIsacDecoder(codec_inst.plfreq);
+ }) == -1) {
return -1;
}
memcpy(&receive_codec_, &codec_inst, sizeof(CodecInst));
« no previous file with comments | « webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h ('k') | webrtc/test/fuzzers/audio_decoder_isac_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698