Commit c25de7f8 authored by michael's avatar michael

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8514 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6ec906a1
...@@ -68,14 +68,13 @@ struct LZWState { ...@@ -68,14 +68,13 @@ struct LZWState {
/* get one code from stream */ /* get one code from stream */
static int lzw_get_code(struct LZWState * s) static int lzw_get_code(struct LZWState * s)
{ {
int c, sizbuf; int c;
if(s->mode == FF_LZW_GIF) { if(s->mode == FF_LZW_GIF) {
while (s->bbits < s->cursize) { while (s->bbits < s->cursize) {
if (!s->bs) { if (!s->bs) {
sizbuf = *s->pbuf++; s->bs = *s->pbuf++;
s->bs = sizbuf; if(!s->bs) {
if(!sizbuf) {
s->eob_reached = 1; s->eob_reached = 1;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment