Commit e6b39fe6 authored by michael's avatar michael

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8524 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b4dac278
......@@ -152,16 +152,7 @@ int ff_lzw_decode_init(LZWState *p, int csize, uint8_t *buf, int buf_size, int m
s->sp = s->stack;
s->mode = mode;
switch(s->mode){
case FF_LZW_GIF:
s->extra_slot= 0;
break;
case FF_LZW_TIFF:
s->extra_slot= 1;
break;
default:
return -1;
}
s->extra_slot = s->mode == FF_LZW_TIFF;
return 0;
}
......
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