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

Unified Diff: webkit/media/android/audio_decoder_android.cc

Issue 13852039: Android: Fix incorrect sign on kMinScale in audio decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/android/audio_decoder_android.cc
diff --git a/webkit/media/android/audio_decoder_android.cc b/webkit/media/android/audio_decoder_android.cc
index 8bab50ab282f33202996f8e70a6c3529de62d59f..6cc52c9636b8c94948ab25dd1496235b692853ba 100644
--- a/webkit/media/android/audio_decoder_android.cc
+++ b/webkit/media/android/audio_decoder_android.cc
@@ -180,7 +180,7 @@ bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, const char* data,
size_t decoded_frames = 0;
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 k = 0; k < number_of_channels; ++k) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698