summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 18:50:09 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 18:50:09 +0000
commit1f06c0d6bec498d23ce904e8dd64c79d2af138cf (patch)
treebc1038200429a4fe76bbc9c3fb56c4655d92c173 /content
parent3e7ffa4d665d16ffc5f242ba48415d341f8dc638 (diff)
downloadchromium_src-1f06c0d6bec498d23ce904e8dd64c79d2af138cf.zip
chromium_src-1f06c0d6bec498d23ce904e8dd64c79d2af138cf.tar.gz
chromium_src-1f06c0d6bec498d23ce904e8dd64c79d2af138cf.tar.bz2
Fix build break.
BUG=none TEST=none TBR=inferno@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/speech/endpointer/energy_endpointer.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/browser/speech/endpointer/energy_endpointer.cc b/content/browser/speech/endpointer/energy_endpointer.cc
index edf3edd..39cf617 100644
--- a/content/browser/speech/endpointer/energy_endpointer.cc
+++ b/content/browser/speech/endpointer/energy_endpointer.cc
@@ -34,10 +34,9 @@ int64 Secs2Usecs(float seconds) {
}
float GetDecibel(float value) {
- const float kVerySmallValue = 1.0e-100f;
- if (value < kVerySmallValue)
- value = kVerySmallValue;
- return 20 * log10(value);
+ if (value > 1.0e-100)
+ return 20 * log10(value);
+ return -2000.0;
}
} // namespace