Author: thilo.borgmann
Date: Mon Aug 17 12:44:46 2009
New Revision: 5158

Log:
Replace if-else contruct.

Modified:
   als/alsdec.c

Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c        Mon Aug 17 11:07:09 2009        (r5157)
+++ als/alsdec.c        Mon Aug 17 12:44:46 2009        (r5158)
@@ -661,13 +661,8 @@ static int read_block_data(ALSDecContext
             for (smp = 0; smp < block_length; smp++) {
                 unsigned int max, convert;
 
-                if (smp < progressive) {
-                    max     = smp;
-                    convert = 1;
-                } else {
-                    max     = progressive;
-                    convert = 0;
-                }
+                convert = smp < progressive;
+                max     = convert ? smp : progressive;
 
                 y = 1 << 19;
 
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to