Simplify eval_refl(): return directly when needed instead of storing the return value...
authorVitor Sessak <vitor1001@gmail.com>
Wed, 6 Aug 2008 05:24:21 +0000 (05:24 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Wed, 6 Aug 2008 05:24:21 +0000 (05:24 +0000)
Originally committed as revision 14640 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ra144.c

index dcb852626892ef46420176bcc10ca371ae29eb1f..4a3bc68f60a24b636cce5d4dc0bd3dc92c78b1f1 100644 (file)
@@ -231,7 +231,6 @@ static void int_to_int16(int16_t *out, const int *inp)
  */
 static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)
 {
-    int retval = 0;
     int b, c, i;
     unsigned int u;
     int buffer1[10];
@@ -267,11 +266,11 @@ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)
         refl[c] = u = bp1[c];
 
         if ((u + 0x1000) > 0x1fff)
-            retval = 1;
+            return 1;
 
         FFSWAP(int *, bp1, bp2);
     }
-    return retval;
+    return 0;
 }
 
 static int interp(RA144Context *ractx, int16_t *out, int block_num,