Mercurial > mplayer.hg
changeset 21894:449b9fb6f67b
Fix: refmodes 2 and 3 leave useref unchanged
author | reimar |
---|---|
date | Sat, 13 Jan 2007 12:46:27 +0000 |
parents | 4a83d090520c |
children | 5d9486bbc156 |
files | libmpdemux/demux_gif.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_gif.c Sat Jan 13 12:39:13 2007 +0000 +++ b/libmpdemux/demux_gif.c Sat Jan 13 12:46:27 2007 +0000 @@ -146,14 +146,13 @@ 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);