]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Cosmetics: rename loop counters in eval_refl()
authorvitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 6 Aug 2008 21:19:30 +0000 (21:19 +0000)
committervitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 6 Aug 2008 21:19:30 +0000 (21:19 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14653 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/ra144.c

index bd91c638b8347b25ecbe8605ae603a2e050301cd..b947d67968b17ae554c6ff3ff04abb7cb002b8a3 100644 (file)
@@ -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);