diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:46:42 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:46:42 +0000 |
commit | 09addb11cefd1f1f4e44d202762f2f8f484b2684 (patch) | |
tree | f2eb8e5684ef1872fc7390cc5fdb0fd8be874c19 /libavcodec/ra144.c | |
parent | f1936f61c4315ac4495b58bb72df7a49f3babc1d (diff) | |
download | ffmpeg-streaming-09addb11cefd1f1f4e44d202762f2f8f484b2684.zip ffmpeg-streaming-09addb11cefd1f1f4e44d202762f2f8f484b2684.tar.gz |
Simplify
Originally committed as revision 13932 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index eee9c4d..67b2544 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -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); |