mirror of https://github.com/mpv-player/mpv
Simplify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21901 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e52420a9fe
commit
0636ab5f58
|
@ -120,8 +120,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
|
|||
|
||||
{
|
||||
int y;
|
||||
int cnt = effective_map->ColorCount;
|
||||
if (cnt > 256) cnt = 256;
|
||||
int cnt = FFMIN(effective_map->ColorCount, 256);
|
||||
int l = FFMIN(gif->Image.Left, priv->w);
|
||||
int t = FFMIN(gif->Image.Top, priv->h);
|
||||
int w = FFMIN(gif->Image.Width, priv->w - l);
|
||||
|
|
Loading…
Reference in New Issue