Originally committed as revision 8510 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
s->curmask = mask[++s->cursize];
}
}
- while (sp > s->stack) {
- *buf++ = *(--sp);
- if ((--l) == 0)
- goto the_end;
- }
}
}
the_end: