mirror of https://github.com/mpv-player/mpv
Cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21914 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ba63e7b28d
commit
cc05fc22e8
|
@ -81,8 +81,8 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
|
||||||
if (p[0] == 4) // is the length correct?
|
if (p[0] == 4) // is the length correct?
|
||||||
{
|
{
|
||||||
transparency = p[1] & 1;
|
transparency = p[1] & 1;
|
||||||
frametime = (p[3] << 8) | p[2]; // set the time, centiseconds
|
|
||||||
refmode = (p[1] >> 2) & 3;
|
refmode = (p[1] >> 2) & 3;
|
||||||
|
frametime = (p[3] << 8) | p[2]; // set the time, centiseconds
|
||||||
transparent_col = p[4];
|
transparent_col = p[4];
|
||||||
}
|
}
|
||||||
priv->current_pts += frametime;
|
priv->current_pts += frametime;
|
||||||
|
@ -162,7 +162,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
|
||||||
spos += gif->Image.Width - w;
|
spos += gif->Image.Width - w;
|
||||||
}
|
}
|
||||||
} else
|
} 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 == 1) memcpy(priv->refimg, dp->buffer, priv->w * priv->h);
|
||||||
if (refmode == 2 && priv->useref) {
|
if (refmode == 2 && priv->useref) {
|
||||||
|
|
Loading…
Reference in New Issue