changeset 4735:8903c1d6db18 libavcodec

simplify
author michael
date Mon, 26 Mar 2007 00:44:42 +0000
parents d2db36185222
children 59649ebd5ed8
files lzw.c
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lzw.c	Mon Mar 26 00:00:43 2007 +0000
+++ b/lzw.c	Mon Mar 26 00:44:42 2007 +0000
@@ -152,16 +152,7 @@
     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;
 }