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

Unified Diff: webrtc/common_audio/signal_processing/get_hanning_window.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/get_hanning_window.c
diff --git a/webrtc/common_audio/signal_processing/get_hanning_window.c b/webrtc/common_audio/signal_processing/get_hanning_window.c
index 519b665843ce78575928f49365dc0c2aef681444..d83ac21682dafcb826e7060f4487a27b7ead992a 100644
--- a/webrtc/common_audio/signal_processing/get_hanning_window.c
+++ b/webrtc/common_audio/signal_processing/get_hanning_window.c
@@ -53,15 +53,15 @@ static const int16_t kHanningTable[] = {
16354, 16362, 16369, 16374, 16378, 16382, 16383, 16384
};
-void WebRtcSpl_GetHanningWindow(int16_t *v, int16_t size)
+void WebRtcSpl_GetHanningWindow(int16_t *v, size_t size)
{
- int jj;
+ size_t jj;
int16_t *vptr1;
int32_t index;
int32_t factor = ((int32_t)0x40000000);
- factor = WebRtcSpl_DivW32W16(factor, size);
+ factor = WebRtcSpl_DivW32W16(factor, (int16_t)size);
if (size < 513)
index = (int32_t)-0x200000;
else
« no previous file with comments | « webrtc/common_audio/signal_processing/filter_ma_fast_q12.c ('k') | webrtc/common_audio/signal_processing/get_scaling_square.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698