Skip to content
Snippets Groups Projects
Commit 38603ff6 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

cleanup suggested by Michael Niedermayer

Originally committed as revision 5732 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b9a73d8d
No related branches found
No related tags found
No related merge requests found
...@@ -25,15 +25,17 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigne ...@@ -25,15 +25,17 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigne
if (buf == NULL) return 1L; if (buf == NULL) return 1L;
while (len > 0) { while (len > 0) {
k = len < NMAX ? len : NMAX; k = FFMIN(len, NMAX);
len -= k; len -= k;
#ifndef CONFIG_SMALL
while (k >= 16) { while (k >= 16) {
DO16(buf); DO16(buf);
k -= 16; k -= 16;
} }
if (k != 0) do { #endif
while(k--) {
DO1(buf); DO1(buf);
} while (--k); }
s1 %= BASE; s1 %= BASE;
s2 %= BASE; s2 %= BASE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment