Mercurial > libavcodec.hg
changeset 7295:f3923fea3a8c libavcodec
Simplify
author | vitor |
---|---|
date | Thu, 17 Jul 2008 22:42:21 +0000 |
parents | bf3952d5e76c |
children | 6221f1f81f9b |
files | ra288.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ra288.c Thu Jul 17 22:39:29 2008 +0000 +++ b/ra288.c Thu Jul 17 22:42:21 2008 +0000 @@ -108,13 +108,10 @@ 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 @@ if ((f0 += f1*f2) < 0) return 0; } + + return 1; } /* product sum (lsf) */