[MPlayer-cvslog] r21901 - trunk/libmpdemux/demux_gif.c
reimar
subversion at mplayerhq.hu
Sat Jan 13 12:37:59 CET 2007
Author: reimar
Date: Sat Jan 13 12:37:59 2007
New Revision: 21901
Modified:
trunk/libmpdemux/demux_gif.c
Log:
Simplify
Modified: trunk/libmpdemux/demux_gif.c
==============================================================================
--- trunk/libmpdemux/demux_gif.c (original)
+++ trunk/libmpdemux/demux_gif.c Sat Jan 13 12:37:59 2007
@@ -120,8 +120,7 @@
{
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);
More information about the MPlayer-cvslog
mailing list