diff options
author | Baptiste Coudurier | 2007-03-25 16:29:11 +0000 |
---|---|---|
committer | Baptiste Coudurier | 2007-03-25 16:29:11 +0000 |
commit | 10d4899c010245b4ae8b6bc17a57e4dcda739498 (patch) | |
tree | cdfdfea7c49031935c3b9daac2ad9d54618009db /libavcodec/gifdec.c | |
parent | 5f01beb54846de8764c15206aa63086238dde493 (diff) |
pass correct buffer size to lzw decode init
Originally committed as revision 8518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r-- | libavcodec/gifdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 386c039c9c..095b506389 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -109,7 +109,8 @@ static int gif_read_image(GifState *s) /* now get the image data */ code_size = bytestream_get_byte(&s->bytestream); //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 */ linesize = s->picture.linesize[0]; |