# HG changeset patch # User reimar # Date 1169982172 0 # Node ID 35098f42db9a64abeef6f63991be9d80a756e9b4 # Parent 71d78117fbf0a88fd1d7b9fd6f4fc48bda484980 10l, confused current "frame" with canvas width. diff -r 71d78117fbf0 -r 35098f42db9a libmpdemux/demux_gif.c --- a/libmpdemux/demux_gif.c Sun Jan 28 10:45:34 2007 +0000 +++ b/libmpdemux/demux_gif.c Sun Jan 28 11:02:52 2007 +0000 @@ -180,15 +180,15 @@ priv->w << 3, gif->Image.Width, transparency, transparent_col); s += (h >> 3) * w; - memcpy_transp_pic(dest + (gif->Image.Width << 2), s, w, h >> 3, + memcpy_transp_pic(dest + (priv->w << 2), s, w, h >> 3, priv->w << 3, gif->Image.Width, transparency, transparent_col); s += (h >> 3) * w; - memcpy_transp_pic(dest + (gif->Image.Width << 1), s, w, h >> 2, + memcpy_transp_pic(dest + (priv->w << 1), s, w, h >> 2, priv->w << 2, gif->Image.Width, transparency, transparent_col); s += (h >> 2) * w; - memcpy_transp_pic(dest + gif->Image.Width, s, w, h >> 1, + memcpy_transp_pic(dest + priv->w, s, w, h >> 1, priv->w << 1, gif->Image.Width, transparency, transparent_col); } else