mirror of https://github.com/mpv-player/mpv
Fix: refmodes 2 and 3 leave useref unchanged
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21912 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
497403d31f
commit
79cc33a851
|
@ -146,14 +146,13 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
|
|||
|
||||
memcpy_pic(dest, buf, w, h, priv->w, gif->Image.Width);
|
||||
|
||||
priv->useref = 1;
|
||||
if (refmode == 1) memcpy(priv->refimg, dp->buffer, priv->w * priv->h);
|
||||
if (refmode == 2 && priv->useref) {
|
||||
dest = priv->refimg + priv->w * t + l;
|
||||
memset(buf, gif->SBackGroundColor, len);
|
||||
memcpy_pic(dest, buf, w, h, priv->w, gif->Image.Width);
|
||||
}
|
||||
if (!refmode) priv->useref = 0;
|
||||
if (!(refmode & 2)) priv->useref = refmode & 1;
|
||||
}
|
||||
|
||||
free(buf);
|
||||
|
|
Loading…
Reference in New Issue