summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-19 15:32:29 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-19 15:32:29 +0000
commit6bc5714be67b92086dff74318f8b5c5e74969b5c (patch)
treea260da5e57eabede0b79ce11702688c3c7d130d1 /libavcodec/ra288.c
parent28bb9eb24b7dd901633b4808c0a250f4531a2a5b (diff)
Simplify co(): remove variables that are only used once
Originally committed as revision 14301 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index bc7d9a91eb..10fdfa89a4 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -140,7 +140,6 @@ static void prodsum(float *tgt, const float *src, int len, int n)
static void co(int n, int i, int j, const float *in, float *out, float *st1,
float *st2, const float *table)
{
- int a, b, c;
unsigned int x;
const float *fp;
float buffer1[37];
@@ -148,16 +147,15 @@ static void co(int n, int i, int j, const float *in, float *out, float *st1,
float work[111];
/* rotate and multiply */
- c = (b = (a = n + i) + j) - i;
fp = st1 + i;
- for (x=0; x < b; x++) {
- if (x == c)
+ for (x=0; x < n + i + j; x++) {
+ if (x == n + j)
fp=in;
work[x] = *(table++) * (*(st1++) = *(fp++));
}
prodsum(buffer1, work + n, i, n);
- prodsum(buffer2, work + a, j, n);
+ prodsum(buffer2, work + n + i, j, n);
for (x=0;x<=n;x++) {
*st2 = *st2 * (0.5625) + buffer1[x];