projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e426500
)
Simplify
author
Vitor Sessak
<vitor1001@gmail.com>
Thu, 17 Jul 2008 22:42:21 +0000
(22:42 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Thu, 17 Jul 2008 22:42:21 +0000
(22:42 +0000)
Originally committed as revision 14267 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra288.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra288.c
b/libavcodec/ra288.c
index
5f44fed
..
7ab2432
100644
(file)
--- 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) */