[Ffmpeg-cvslog] r5732 - trunk/libavutil/adler32.c

mru subversion
Thu Jul 13 23:41:28 CEST 2006


Author: mru
Date: Thu Jul 13 23:41:28 2006
New Revision: 5732

Modified:
   trunk/libavutil/adler32.c

Log:
cleanup suggested by Michael Niedermayer


Modified: trunk/libavutil/adler32.c
==============================================================================
--- trunk/libavutil/adler32.c	(original)
+++ trunk/libavutil/adler32.c	Thu Jul 13 23:41:28 2006
@@ -25,15 +25,17 @@
     if (buf == NULL) return 1L;
 
     while (len > 0) {
-        k = len < NMAX ? len : NMAX;
+        k = FFMIN(len, NMAX);
         len -= k;
+#ifndef CONFIG_SMALL
         while (k >= 16) {
             DO16(buf);
             k -= 16;
         }
-        if (k != 0) do {
+#endif
+        while(k--) {
             DO1(buf);
-        } while (--k);
+        }
         s1 %= BASE;
         s2 %= BASE;
     }




More information about the ffmpeg-cvslog mailing list