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

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c

Issue 1230693002: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments 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/modules/audio_coding/codecs/ilbc/frame_classify.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c b/webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c
index 6a68dec16f612f88660c8cc91c77d7ba1599452f..f442f6a28583053c16b7610f536a319b453055c8 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c
@@ -23,7 +23,7 @@
* Classification of subframes to localize start state
*---------------------------------------------------------------*/
-int16_t WebRtcIlbcfix_FrameClassify(
+size_t WebRtcIlbcfix_FrameClassify(
/* (o) Index to the max-energy sub frame */
IlbcEncoder *iLBCenc_inst,
/* (i/o) the encoder state structure */
@@ -35,8 +35,8 @@ int16_t WebRtcIlbcfix_FrameClassify(
int32_t *seqEnPtr;
int32_t maxW32;
int16_t scale1;
- int16_t pos;
- int n;
+ size_t pos;
+ size_t n;
/*
Calculate the energy of each of the 80 sample blocks
@@ -82,7 +82,7 @@ int16_t WebRtcIlbcfix_FrameClassify(
}
/* Extract the best choise of start state */
- pos = WebRtcSpl_MaxIndexW32(ssqEn, iLBCenc_inst->nsub - 1) + 1;
+ pos = (size_t)WebRtcSpl_MaxIndexW32(ssqEn, iLBCenc_inst->nsub - 1) + 1;
return(pos);
}
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/frame_classify.h ('k') | webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698