From f6a9b356cd594b7df3396b45b8f797affcf3f632 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 13 Jan 2007 11:46:43 +0000 Subject: [PATCH] Forgot to adjust length of memset git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21904 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/demux_gif.c b/libmpdemux/demux_gif.c index 8c5b1ce3a4..339d28c191 100644 --- a/libmpdemux/demux_gif.c +++ b/libmpdemux/demux_gif.c @@ -109,7 +109,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds) dp = new_demux_packet(priv->w * priv->h); buf = malloc(len); memset(buf, 0, len); - memset(dp->buffer, 0, len); + memset(dp->buffer, 0, priv->w * priv->h); if (DGifGetLine(gif, buf, len) == GIF_ERROR) { PrintGifError();