[MPlayer-cvslog] r33218 - trunk/gui/util/bitmap.c

ib subversion at mplayerhq.hu
Tue Apr 5 11:28:59 CEST 2011


Author: ib
Date: Tue Apr  5 11:28:59 2011
New Revision: 33218

Log:
Revise Normalize().

Make loop variable match ImageSize type,
rephrase #if condition positively.

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Tue Apr  5 11:12:35 2011	(r33217)
+++ trunk/gui/util/bitmap.c	Tue Apr  5 11:28:59 2011	(r33218)
@@ -149,13 +149,13 @@ static int Convert24to32(txSample *bf)
 
 static void Normalize(txSample *bf)
 {
-    int i;
+    unsigned long i;
 
-    for (i = 0; i < (int)bf->ImageSize; i += 4)
-#if !HAVE_BIGENDIAN
-        bf->Image[i + 3] = 0;
-#else
+    for (i = 0; i < bf->ImageSize; i += 4)
+#if HAVE_BIGENDIAN
         bf->Image[i] = 0;
+#else
+        bf->Image[i + 3] = 0;
 #endif
 }
 


More information about the MPlayer-cvslog mailing list