From 79cc33a8518f3408cbba621f4fa506a5a7572e26 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 13 Jan 2007 12:46:27 +0000 Subject: [PATCH] Fix: refmodes 2 and 3 leave useref unchanged git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21912 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_gif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmpdemux/demux_gif.c b/libmpdemux/demux_gif.c index 6eea91fd2b..1a3e235e8a 100644 --- a/libmpdemux/demux_gif.c +++ b/libmpdemux/demux_gif.c @@ -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);