summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-17 23:01:31 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-17 23:01:31 +0000
commitefa85e5e4595c0c8292b0dd8335a4efd898ed94e (patch)
tree0d037a69a953bdd33045b3d313e55d4679df5e44 /libavcodec/ra288.c
parent4a51e06bfcadedd8f3cc3686bd2e5dead1906a32 (diff)
Another simplification
Originally committed as revision 14269 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index ad65793ed0..799d349e77 100644
--- 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;