From efa85e5e4595c0c8292b0dd8335a4efd898ed94e Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Thu, 17 Jul 2008 23:01:31 +0000 Subject: [PATCH] Another simplification Originally committed as revision 14269 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ra288.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index ad65793..799d349 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; -- 2.7.4