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:
4a51e06
)
Another simplification
author
Vitor Sessak
<vitor1001@gmail.com>
Thu, 17 Jul 2008 23:01:31 +0000
(23:01 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Thu, 17 Jul 2008 23:01:31 +0000
(23:01 +0000)
Originally committed as revision 14269 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra288.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra288.c
b/libavcodec/ra288.c
index
ad65793
..
799d349
100644
(file)
--- a/
libavcodec/ra288.c
+++ b/
libavcodec/ra288.c
@@
-111,7
+111,7
@@
static int pred(float *in, float *tgt, int n)
in--; // To avoid a -1 subtraction in the inner loop
for (x=1; x <= n; x++) {
- float *p1 =
in + x
;
+ float *p1 =
tgt + x - 1
;
float *p2 = tgt;
f1 = in[x+1];
@@
-119,8
+119,6
@@
static int pred(float *in, float *tgt, int n)
for (y=0; y < x - 1; y++)
f1 += in[x-y]*tgt[y];
- p1 = tgt + x - 1;
- p2 = tgt;
*(p1--) = f2 = -f1/f0;
for (y=x >> 1; y--;) {
float temp = *p2 + *p1 * f2;