From 0abfd533443a21334e5f9eb2833bc0d656714b6f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 26 Mar 2007 00:44:42 +0000 Subject: [PATCH] simplify Originally committed as revision 8524 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/lzw.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libavcodec/lzw.c b/libavcodec/lzw.c index 24b8194ac1..238c38cd82 100644 --- a/libavcodec/lzw.c +++ b/libavcodec/lzw.c @@ -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; }