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

Unified Diff: webrtc/common_audio/signal_processing/energy.c

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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
Index: webrtc/common_audio/signal_processing/energy.c
diff --git a/webrtc/common_audio/signal_processing/energy.c b/webrtc/common_audio/signal_processing/energy.c
index 1d1ed6284537b91bed323c9f8aa98c43d55eda5e..e83f1a698f609e95eba8a0fc399d03d8c218174d 100644
--- a/webrtc/common_audio/signal_processing/energy.c
+++ b/webrtc/common_audio/signal_processing/energy.c
@@ -17,13 +17,15 @@
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
-int32_t WebRtcSpl_Energy(int16_t* vector, int vector_length, int* scale_factor)
+int32_t WebRtcSpl_Energy(int16_t* vector,
+ size_t vector_length,
+ int* scale_factor)
{
int32_t en = 0;
- int i;
+ size_t i;
int scaling =
WebRtcSpl_GetScalingSquare(vector, vector_length, vector_length);
- int looptimes = vector_length;
+ size_t looptimes = vector_length;
int16_t *vectorptr = vector;
for (i = 0; i < looptimes; i++)
« no previous file with comments | « webrtc/common_audio/signal_processing/downsample_fast_neon.c ('k') | webrtc/common_audio/signal_processing/filter_ar.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698