Index: webrtc/common_audio/include/audio_util.h |
diff --git a/webrtc/common_audio/include/audio_util.h b/webrtc/common_audio/include/audio_util.h |
index 64789f257f10cc288431a438584a98342c863fff..277d19d126b8921a8466c3d4da397cf0c8174705 100644 |
--- a/webrtc/common_audio/include/audio_util.h |
+++ b/webrtc/common_audio/include/audio_util.h |
@@ -72,11 +72,11 @@ void FloatS16ToFloat(const float* src, size_t size, float* dest); |
template <typename T> |
void Deinterleave(const T* interleaved, |
size_t samples_per_channel, |
- int num_channels, |
+ size_t num_channels, |
T* const* deinterleaved) { |
- for (int i = 0; i < num_channels; ++i) { |
+ for (size_t i = 0; i < num_channels; ++i) { |
T* channel = deinterleaved[i]; |
- int interleaved_idx = i; |
+ size_t interleaved_idx = i; |
for (size_t j = 0; j < samples_per_channel; ++j) { |
channel[j] = interleaved[interleaved_idx]; |
interleaved_idx += num_channels; |
@@ -90,11 +90,11 @@ void Deinterleave(const T* interleaved, |
template <typename T> |
void Interleave(const T* const* deinterleaved, |
size_t samples_per_channel, |
- int num_channels, |
+ size_t num_channels, |
T* interleaved) { |
- for (int i = 0; i < num_channels; ++i) { |
+ for (size_t i = 0; i < num_channels; ++i) { |
const T* channel = deinterleaved[i]; |
- int interleaved_idx = i; |
+ size_t interleaved_idx = i; |
for (size_t j = 0; j < samples_per_channel; ++j) { |
interleaved[interleaved_idx] = channel[j]; |
interleaved_idx += num_channels; |