Commit 02a1eb93 authored by Vitor Sessak's avatar Vitor Sessak

Simplify

Originally committed as revision 14267 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e4265007
...@@ -108,13 +108,10 @@ static int pred(float *in, float *tgt, int n) ...@@ -108,13 +108,10 @@ static int pred(float *in, float *tgt, int n)
if ((f0 = *in) <= 0) if ((f0 = *in) <= 0)
return 0; return 0;
for (x=1 ; ; x++) { for (x=1; x <= n; x++) {
float *p1 = in + x; float *p1 = in + x;
float *p2 = tgt; float *p2 = tgt;
if (n < x)
return 1;
f1 = *(p1--); f1 = *(p1--);
for (y=0; y < x - 1; y++) for (y=0; y < x - 1; y++)
...@@ -131,6 +128,8 @@ static int pred(float *in, float *tgt, int n) ...@@ -131,6 +128,8 @@ static int pred(float *in, float *tgt, int n)
if ((f0 += f1*f2) < 0) if ((f0 += f1*f2) < 0)
return 0; return 0;
} }
return 1;
} }
/* product sum (lsf) */ /* product sum (lsf) */
......
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