git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21901 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-01-13 11:37:59 +00:00
parent e52420a9fe
commit 0636ab5f58
1 changed files with 1 additions and 2 deletions

View File

@ -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);