[SCM] libav/experimental: factorize
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:58:11 UTC 2013
The following commit has been merged in the experimental branch:
commit bf7709619b19ecbdb752b3badf0ec7beb78fd0a4
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sun Mar 25 14:02:54 2007 +0000
factorize
Originally committed as revision 8510 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/lzw.c b/libavcodec/lzw.c
index cb12eb8..240ff13 100644
--- a/libavcodec/lzw.c
+++ b/libavcodec/lzw.c
@@ -192,13 +192,12 @@ int ff_lzw_decode(LZWState *p, uint8_t *buf, int len){
oc = s->oc;
fc = s->fc;
- while (sp > s->stack) {
- *buf++ = *(--sp);
- if ((--l) == 0)
- goto the_end;
- }
-
for (;;) {
+ while (sp > s->stack) {
+ *buf++ = *(--sp);
+ if ((--l) == 0)
+ goto the_end;
+ }
c = lzw_get_code(s);
if (c == s->end_code) {
s->end_code = -1;
@@ -242,11 +241,6 @@ int ff_lzw_decode(LZWState *p, uint8_t *buf, int len){
s->curmask = mask[++s->cursize];
}
}
- while (sp > s->stack) {
- *buf++ = *(--sp);
- if ((--l) == 0)
- goto the_end;
- }
}
}
the_end:
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list