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

Unified Diff: webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc

Issue 2404183003: Fix bug in DTMF generation where events with level > 36 would be ignored. (Closed)
Patch Set: fix other tests Created 4 years, 2 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/dtmf_tone_generator.cc
diff --git a/webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc b/webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc
index f4d5190c615ab2c0ecd3eddd007b6c1301522ce8..2cafeec9b77fe4323b654540265b2c8b1b0b6e68 100644
--- a/webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc
+++ b/webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc
@@ -124,7 +124,7 @@ int DtmfToneGenerator::Init(int fs, int event, int attenuation) {
return kParameterError; // Invalid event number.
}
- if (attenuation < 0 || attenuation > 36) {
+ if (attenuation < 0 || attenuation > 63) {
return kParameterError; // Invalid attenuation.
}

Powered by Google App Engine
This is Rietveld 408576698