Commit 70e173b4 authored by rtoy@google.com's avatar rtoy@google.com

Fix incorrect sign on kMinScale in audio decoder

BUG=

Review URL: https://chromiumcodereview.appspot.com/13852039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195304 0039d316-1c4b-4281-b951-d872f2087c98
parent 5e3531e9
...@@ -180,7 +180,7 @@ bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, const char* data, ...@@ -180,7 +180,7 @@ bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, const char* data,
size_t decoded_frames = 0; size_t decoded_frames = 0;
const float kMaxScale = 1.0f / std::numeric_limits<int16_t>::max(); const float kMaxScale = 1.0f / std::numeric_limits<int16_t>::max();
const float kMinScale = 1.0f / std::numeric_limits<int16_t>::min(); const float kMinScale = -1.0f / std::numeric_limits<int16_t>::min();
for (size_t m = 0; m < number_of_samples; m += number_of_channels) { for (size_t m = 0; m < number_of_samples; m += number_of_channels) {
for (size_t k = 0; k < number_of_channels; ++k) { for (size_t k = 0; k < number_of_channels; ++k) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment