changeset 21883:3758ec905220

Simplify
author reimar
date Sat, 13 Jan 2007 11:37:59 +0000
parents 68ebac1f2b8d
children 7484e767c53d
files libmpdemux/demux_gif.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_gif.c	Sat Jan 13 11:37:18 2007 +0000
+++ b/libmpdemux/demux_gif.c	Sat Jan 13 11:37:59 2007 +0000
@@ -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);