projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9a73d8
)
cleanup suggested by Michael Niedermayer
author
Måns Rullgård
<mans@mansr.com>
Thu, 13 Jul 2006 21:41:28 +0000
(21:41 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Thu, 13 Jul 2006 21:41:28 +0000
(21:41 +0000)
Originally committed as revision 5732 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/adler32.c
patch
|
blob
|
history
diff --git
a/libavutil/adler32.c
b/libavutil/adler32.c
index
ab0b86d
..
1d814b4
100644
(file)
--- a/
libavutil/adler32.c
+++ b/
libavutil/adler32.c
@@
-25,15
+25,17
@@
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigne
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;
}