changeset 21886:84b9d245ee06

Forgot to adjust length of memset
author reimar
date Sat, 13 Jan 2007 11:46:43 +0000
parents d885d65e8dc8
children 36cc5a884b6a
files libmpdemux/demux_gif.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_gif.c	Sat Jan 13 11:44:36 2007 +0000
+++ b/libmpdemux/demux_gif.c	Sat Jan 13 11:46:43 2007 +0000
@@ -109,7 +109,7 @@
   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();