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

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

Issue 1184643002: Reland "Upconvert various types to int.", ilbc portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 6 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/my_corr.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/my_corr.c b/webrtc/modules/audio_coding/codecs/ilbc/my_corr.c
index ab08001fc5ed639d108e5dfed0c2d597a48115c3..3261015258f7751a5a760861a79b2d6a92a4ac24 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/my_corr.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/my_corr.c
@@ -29,7 +29,8 @@ void WebRtcIlbcfix_MyCorr(
const int16_t* seq2, /* (i) second sequence */
int16_t dim2 /* (i) dimension seq2 */
){
- int16_t max, scale, loops;
+ int16_t max, loops;
+ int scale;
/* Calculate correlation between the two sequences. Scale the
result of the multiplcication to maximum 26 bits in order
@@ -37,7 +38,7 @@ void WebRtcIlbcfix_MyCorr(
max=WebRtcSpl_MaxAbsValueW16(seq1, dim1);
scale=WebRtcSpl_GetSizeInBits(max);
- scale = (int16_t)(2 * scale - 26);
+ scale = 2 * scale - 26;
if (scale<0) {
scale=0;
}
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/interface/ilbc.h ('k') | webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698