mirror of https://github.com/mpv-player/mpv
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:
parent
16c183be83
commit
f6a9b356cd
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue