In gif encoder, fix uninitialized value, patch by Clément Bœsch, ubitux at gmail...
authorClément Bœsch <ubitux@gmail.com>
Mon, 10 Jan 2011 21:14:54 +0000 (21:14 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 10 Jan 2011 21:14:54 +0000 (21:14 +0000)
Originally committed as revision 26303 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/gif.c

index 5114b89..a52f140 100644 (file)
@@ -87,7 +87,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
                                  const uint8_t *buf, int linesize)
 {
     GIFContext *s = avctx->priv_data;
-    int len, height;
+    int len = 0, height;
     const uint8_t *ptr;
     /* image block */