# HG changeset patch # User michael # Date 1174869882 0 # Node ID 8903c1d6db1814980485d4c24d394ba789a3540c # Parent d2db3618522283700f1c33ac2ceef73388d000dd simplify diff -r d2db36185222 -r 8903c1d6db18 lzw.c --- a/lzw.c Mon Mar 26 00:00:43 2007 +0000 +++ b/lzw.c Mon Mar 26 00:44:42 2007 +0000 @@ -152,16 +152,7 @@ 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; }