diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-26 00:44:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-26 00:44:42 +0000 |
commit | 0abfd533443a21334e5f9eb2833bc0d656714b6f (patch) | |
tree | 83df7310dc6782d94288f70cc2f5ca028a679b6e /libavcodec | |
parent | ed186431994c98cd7db0aa9b0d92b2493a5e9872 (diff) | |
download | ffmpeg-0abfd533443a21334e5f9eb2833bc0d656714b6f.tar.gz |
simplify
Originally committed as revision 8524 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/lzw.c | 11 |
1 files changed, 1 insertions, 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; } |