[MPlayer-cvslog] r21912 - trunk/libmpdemux/demux_gif.c

reimar subversion at mplayerhq.hu
Sat Jan 13 13:46:27 CET 2007


Author: reimar
Date: Sat Jan 13 13:46:27 2007
New Revision: 21912

Modified:
   trunk/libmpdemux/demux_gif.c

Log:
Fix: refmodes 2 and 3 leave useref unchanged


Modified: trunk/libmpdemux/demux_gif.c
==============================================================================
--- trunk/libmpdemux/demux_gif.c	(original)
+++ trunk/libmpdemux/demux_gif.c	Sat Jan 13 13:46:27 2007
@@ -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);



More information about the MPlayer-cvslog mailing list