From 0636ab5f58f91ea952d955389bcca64e0490eb85 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 13 Jan 2007 11:37:59 +0000 Subject: [PATCH] Simplify git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21901 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_gif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmpdemux/demux_gif.c b/libmpdemux/demux_gif.c index 7aa09c1254..e36514bb8b 100644 --- a/libmpdemux/demux_gif.c +++ b/libmpdemux/demux_gif.c @@ -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);