[FFmpeg-soc] [soc]: r5158 - als/alsdec.c

thilo.borgmann subversion at mplayerhq.hu
Mon Aug 17 12:44:46 CEST 2009


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;
 


More information about the FFmpeg-soc mailing list