[Ffmpeg-cvslog] r8524 - trunk/libavcodec/lzw.c

michael subversion
Mon Mar 26 02:44:42 CEST 2007


Author: michael
Date: Mon Mar 26 02:44:42 2007
New Revision: 8524

Modified:
   trunk/libavcodec/lzw.c

Log:
simplify


Modified: trunk/libavcodec/lzw.c
==============================================================================
--- trunk/libavcodec/lzw.c	(original)
+++ trunk/libavcodec/lzw.c	Mon Mar 26 02:44:42 2007
@@ -152,16 +152,7 @@ int ff_lzw_decode_init(LZWState *p, int 
     s->sp = s->stack;
 
     s->mode = mode;
-    switch(s->mode){
-    case FF_LZW_GIF:
-        s->extra_slot= 0;
-        break;
-    case FF_LZW_TIFF:
-        s->extra_slot= 1;
-        break;
-    default:
-        return -1;
-    }
+    s->extra_slot = s->mode == FF_LZW_TIFF;
     return 0;
 }
 




More information about the ffmpeg-cvslog mailing list