[Ffmpeg-cvslog] r8518 - trunk/libavcodec/gifdec.c

bcoudurier subversion
Sun Mar 25 18:29:11 CEST 2007


Author: bcoudurier
Date: Sun Mar 25 18:29:11 2007
New Revision: 8518

Modified:
   trunk/libavcodec/gifdec.c

Log:
pass correct buffer size to lzw decode init

Modified: trunk/libavcodec/gifdec.c
==============================================================================
--- trunk/libavcodec/gifdec.c	(original)
+++ trunk/libavcodec/gifdec.c	Sun Mar 25 18:29:11 2007
@@ -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];




More information about the ffmpeg-cvslog mailing list