[FFmpeg-cvslog] r13932 - trunk/libavcodec/ra144.c
vitor
subversion
Mon Jun 23 22:46:43 CEST 2008
Author: vitor
Date: Mon Jun 23 22:46:42 2008
New Revision: 13932
Log:
Simplify
Modified:
trunk/libavcodec/ra144.c
Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c (original)
+++ trunk/libavcodec/ra144.c Mon Jun 23 22:46:42 2008
@@ -183,7 +183,7 @@ static unsigned int rms(const int *data)
int b = 0;
for (x=0; x<10; x++) {
- res = (((0x1000000 - (*data) * (*data)) >> 12) * res) >> 12;
+ res = (((0x1000000 - data[x]*data[x]) >> 12) * res) >> 12;
if (res == 0)
return 0;
@@ -192,7 +192,6 @@ static unsigned int rms(const int *data)
b++;
res <<= 2;
}
- data++;
}
res = t_sqrt(res);
More information about the ffmpeg-cvslog
mailing list