[PATCH] Fix uninitialized len in gif encoder

Clément Bœsch ubitux
Sat Jan 8 02:05:07 CET 2011


---
 libavcodec/gif.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 5114b89..a52f140 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -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 */
 
-- 
1.7.3.5


--XvKFcGCOAo53UbWW--



More information about the ffmpeg-devel mailing list