[FFmpeg-cvslog] r14640 - trunk/libavcodec/ra144.c

vitor subversion
Wed Aug 6 07:24:22 CEST 2008


Author: vitor
Date: Wed Aug  6 07:24:21 2008
New Revision: 14640

Log:
Simplify eval_refl(): return directly when needed instead of storing the return value in a variable

Modified:
   trunk/libavcodec/ra144.c

Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c	(original)
+++ trunk/libavcodec/ra144.c	Wed Aug  6 07:24:21 2008
@@ -231,7 +231,6 @@ static void int_to_int16(int16_t *out, c
  */
 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 in
         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,




More information about the ffmpeg-cvslog mailing list