Commit 74941126 authored by bcoudurier's avatar bcoudurier

pass correct buffer size to lzw decode init

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8518 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f79055b3
...@@ -109,7 +109,8 @@ static int gif_read_image(GifState *s) ...@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment