Forgot to adjust length of memset

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21904 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-01-13 11:46:43 +00:00
parent 16c183be83
commit f6a9b356cd
1 changed files with 1 additions and 1 deletions

View File

@ -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); dp = new_demux_packet(priv->w * priv->h);
buf = malloc(len); buf = malloc(len);
memset(buf, 0, 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) { if (DGifGetLine(gif, buf, len) == GIF_ERROR) {
PrintGifError(); PrintGifError();