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

Unified Diff: media/audio/linux/cras_output.cc

Issue 10917161: cras_output: Fix calculation of bytes per sample. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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: media/audio/linux/cras_output.cc
diff --git a/media/audio/linux/cras_output.cc b/media/audio/linux/cras_output.cc
index e27282c8d8f196191df544e0869ebb4819f45155..c1a9e77c2fd560aa83540bee30ca5345687616ec 100644
--- a/media/audio/linux/cras_output.cc
+++ b/media/audio/linux/cras_output.cc
@@ -285,7 +285,7 @@ uint32 CrasOutputStream::Render(size_t frames,
// Note: If this ever changes to output raw float the data must be clipped and
// sanitized since it may come from an untrusted source such as NaCl.
audio_bus_->ToInterleaved(
- frames_filled, bytes_per_frame_ / (frames * num_channels_), buffer);
+ frames_filled, bytes_per_frame_ / num_channels_, buffer);
return frames_filled;
}
« 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