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:
reimar 2007-01-13 12:46:27 +00:00
parent 497403d31f
commit 79cc33a851
1 changed files with 1 additions and 2 deletions

View File

@ -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);