1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

pass correct buffer size to lzw decode init

Originally committed as revision 8518 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier
2007-03-25 16:29:11 +00:00
parent 5f01beb548
commit 10d4899c01

View File

@@ -109,7 +109,8 @@ static int gif_read_image(GifState *s)
/* now get the image data */ /* now get the image data */
code_size = bytestream_get_byte(&s->bytestream); code_size = bytestream_get_byte(&s->bytestream);
//TODO: add proper data size //TODO: add proper data size
ff_lzw_decode_init(s->lzw, code_size, s->bytestream, 0, FF_LZW_GIF); ff_lzw_decode_init(s->lzw, code_size, s->bytestream,
s->bytestream_end - s->bytestream, FF_LZW_GIF);
/* read all the image */ /* read all the image */
linesize = s->picture.linesize[0]; linesize = s->picture.linesize[0];