Commit 09addb11 authored by Vitor Sessak's avatar Vitor Sessak

Simplify

Originally committed as revision 13932 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f1936f61
...@@ -183,7 +183,7 @@ static unsigned int rms(const int *data) ...@@ -183,7 +183,7 @@ static unsigned int rms(const int *data)
int b = 0; int b = 0;
for (x=0; x<10; x++) { 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) if (res == 0)
return 0; return 0;
...@@ -192,7 +192,6 @@ static unsigned int rms(const int *data) ...@@ -192,7 +192,6 @@ static unsigned int rms(const int *data)
b++; b++;
res <<= 2; res <<= 2;
} }
data++;
} }
res = t_sqrt(res); res = t_sqrt(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment