changeset 21896:b2640a639ac7

Cosmetics
author reimar
date Sat, 13 Jan 2007 12:56:42 +0000
parents 5d9486bbc156
children c885b979fda3
files libmpdemux/demux_gif.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_gif.c	Sat Jan 13 12:56:02 2007 +0000
+++ b/libmpdemux/demux_gif.c	Sat Jan 13 12:56:42 2007 +0000
@@ -81,8 +81,8 @@
         if (p[0] == 4) // is the length correct?
         {
           transparency = p[1] & 1;
+          refmode = (p[1] >> 2) & 3;
           frametime = (p[3] << 8) | p[2]; // set the time, centiseconds
-          refmode = (p[1] >> 2) & 3;
           transparent_col = p[4];  
         }
         priv->current_pts += frametime;
@@ -162,7 +162,7 @@
         spos += gif->Image.Width - w;
       }
     } else
-    memcpy_pic(dest, buf, w, h, priv->w, gif->Image.Width);
+      memcpy_pic(dest, buf, w, h, priv->w, gif->Image.Width);
 
     if (refmode == 1) memcpy(priv->refimg, dp->buffer, priv->w * priv->h);
     if (refmode == 2 && priv->useref) {