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

Unified Diff: webrtc/common_audio/channel_buffer.cc

Issue 1227203003: Update audio code to use size_t more correctly, webrtc/common_audio/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 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 | « webrtc/common_audio/channel_buffer.h ('k') | webrtc/common_audio/fft4g.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/channel_buffer.cc
diff --git a/webrtc/common_audio/channel_buffer.cc b/webrtc/common_audio/channel_buffer.cc
index 14aaa7af095bec6ded038ad430aa94c8aac1dd91..d3dc7c04f773af73aba9849f3df75ff0dead7701 100644
--- a/webrtc/common_audio/channel_buffer.cc
+++ b/webrtc/common_audio/channel_buffer.cc
@@ -12,9 +12,9 @@
namespace webrtc {
-IFChannelBuffer::IFChannelBuffer(int num_frames,
+IFChannelBuffer::IFChannelBuffer(size_t num_frames,
int num_channels,
- int num_bands)
+ size_t num_bands)
: ivalid_(true),
ibuf_(num_frames, num_channels, num_bands),
fvalid_(true),
@@ -48,7 +48,7 @@ void IFChannelBuffer::RefreshF() const {
const int16_t* const* int_channels = ibuf_.channels();
float* const* float_channels = fbuf_.channels();
for (int i = 0; i < ibuf_.num_channels(); ++i) {
- for (int j = 0; j < ibuf_.num_frames(); ++j) {
+ for (size_t j = 0; j < ibuf_.num_frames(); ++j) {
float_channels[i][j] = int_channels[i][j];
}
}
« no previous file with comments | « webrtc/common_audio/channel_buffer.h ('k') | webrtc/common_audio/fft4g.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698