diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-17 22:42:21 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-17 22:42:21 +0000 |
commit | 02a1eb932993bec634434390a1ffdffb712ce99a (patch) | |
tree | 849a014af70a2782dca681af611a909701688192 /libavcodec/ra288.c | |
parent | e4265007a60fb9614dff864b684af032901f514b (diff) | |
download | ffmpeg-02a1eb932993bec634434390a1ffdffb712ce99a.tar.gz |
Simplify
Originally committed as revision 14267 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r-- | libavcodec/ra288.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index 5f44fed45c..7ab2432bb3 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -108,13 +108,10 @@ static int pred(float *in, float *tgt, int n) if ((f0 = *in) <= 0) return 0; - for (x=1 ; ; x++) { + for (x=1; x <= n; x++) { float *p1 = in + x; float *p2 = tgt; - if (n < x) - return 1; - f1 = *(p1--); for (y=0; y < x - 1; y++) @@ -131,6 +128,8 @@ static int pred(float *in, float *tgt, int n) if ((f0 += f1*f2) < 0) return 0; } + + return 1; } /* product sum (lsf) */ |