Mercurial > libavcodec.hg
changeset 4729:8342af7feb90 libavcodec
pass correct buffer size to lzw decode init
author | bcoudurier |
---|---|
date | Sun, 25 Mar 2007 16:29:11 +0000 |
parents | 5db8e9e8f71d |
children | ccbe8d386410 |
files | gifdec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gifdec.c Sun Mar 25 15:43:46 2007 +0000 +++ b/gifdec.c Sun Mar 25 16:29:11 2007 +0000 @@ -109,7 +109,8 @@ /* 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];