diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-08-07 01:19:30 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-08-07 01:19:30 +0400 |
commit | b888abe1be9f0b3c75273c28e9a7b58fe47d5ec4 (patch) | |
tree | 89680dc7d1af2f21ee5f1a73bac55979027ae913 /libavcodec | |
parent | bdb34c9f5e490214b3dbcad9c2b09d48fb9018cf (diff) |
Cosmetics: rename loop counters in eval_refl()
Originally committed as revision 14653 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index bd91c638b8..b947d67968 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -226,8 +226,7 @@ static void int_to_int16(int16_t *out, const int *inp) */ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx) { - int b, c, i; - unsigned int u; + int b, i, j; int buffer1[10]; int buffer2[10]; int *bp1 = buffer1; @@ -243,18 +242,18 @@ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx) return 1; } - for (c=8; c >= 0; c--) { - b = 0x1000-((bp2[c+1] * bp2[c+1]) >> 12); + for (i=8; i >= 0; i--) { + b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12); if (!b) b = -2; - for (u=0; u<=c; u++) - bp1[u] = ((bp2[u] - ((refl[c+1] * bp2[c-u]) >> 12)) * (0x1000000 / b)) >> 12; + for (j=0; j <= i; j++) + bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * (0x1000000 / b)) >> 12; - refl[c] = bp1[c]; + refl[i] = bp1[i]; - if ((unsigned) bp1[c] + 0x1000 > 0x1fff) + if ((unsigned) bp1[i] + 0x1000 > 0x1fff) return 1; FFSWAP(int *, bp1, bp2); |