changeset 7509:86b6cb5b04d5 libavcodec

Simplify eval_refl(): return directly when needed instead of storing the return value in a variable
author vitor
date Wed, 06 Aug 2008 05:24:21 +0000
parents f516e1101167
children 212e72dbb838
files ra144.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Wed Aug 06 05:11:46 2008 +0000
+++ b/ra144.c	Wed Aug 06 05:24:21 2008 +0000
@@ -231,7 +231,6 @@
  */
 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 @@
         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,