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:
02a1eb9
)
Simplify
author
Vitor Sessak
<vitor1001@gmail.com>
Thu, 17 Jul 2008 22:59:53 +0000
(22:59 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Thu, 17 Jul 2008 22:59:53 +0000
(22:59 +0000)
Originally committed as revision 14268 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra288.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra288.c
b/libavcodec/ra288.c
index
7ab2432
..
ad65793
100644
(file)
--- a/
libavcodec/ra288.c
+++ b/
libavcodec/ra288.c
@@
-108,14
+108,16
@@
static int pred(float *in, float *tgt, int n)
if ((f0 = *in) <= 0)
return 0;
+ in--; // To avoid a -1 subtraction in the inner loop
+
for (x=1; x <= n; x++) {
float *p1 = in + x;
float *p2 = tgt;
- f1 =
*(p1--)
;
+ f1 =
in[x+1]
;
for (y=0; y < x - 1; y++)
- f1 +=
(*(p1--))*(*(p2++))
;
+ f1 +=
in[x-y]*tgt[y]
;
p1 = tgt + x - 1;
p2 = tgt;