You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
simplify
Originally committed as revision 8524 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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->sp = s->stack;
|
||||||
|
|
||||||
s->mode = mode;
|
s->mode = mode;
|
||||||
switch(s->mode){
|
s->extra_slot = s->mode == FF_LZW_TIFF;
|
||||||
case FF_LZW_GIF:
|
|
||||||
s->extra_slot= 0;
|
|
||||||
break;
|
|
||||||
case FF_LZW_TIFF:
|
|
||||||
s->extra_slot= 1;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user