OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed18643
)
simplify
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 26 Mar 2007 00:44:42 +0000
(
00:44
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 26 Mar 2007 00:44:42 +0000
(
00:44
+0000)
Originally committed as revision 8524 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lzw.c
patch
|
blob
|
history
diff --git
a/libavcodec/lzw.c
b/libavcodec/lzw.c
index
24b8194
..
238c38c
100644
(file)
--- 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;
}