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

Unified Diff: content/renderer/media/render_audiosourceprovider.cc

Issue 10832123: Coverity: Fix a sizeof mismatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: content/renderer/media/render_audiosourceprovider.cc
diff --git a/content/renderer/media/render_audiosourceprovider.cc b/content/renderer/media/render_audiosourceprovider.cc
index a1051e0e5d2b3df8ede8693c993fda0d7ca9e38e..0e465531e27031e0d32b8aa6dd4dcdb8aab348fb 100644
--- a/content/renderer/media/render_audiosourceprovider.cc
+++ b/content/renderer/media/render_audiosourceprovider.cc
@@ -83,7 +83,7 @@ void RenderAudioSourceProvider::provideInput(
} else {
// Provide silence if the source is not running.
for (size_t i = 0; i < audio_data.size(); ++i)
- memset(audio_data[i], 0, sizeof(audio_data[0]) * number_of_frames);
+ memset(audio_data[i], 0, sizeof(*audio_data[0]) * number_of_frames);
}
}
« 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