about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gifed/src/block/indexedimage.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/gifed/src/block/indexedimage.rs b/gifed/src/block/indexedimage.rs
index 64b251e..ea99914 100644
--- a/gifed/src/block/indexedimage.rs
+++ b/gifed/src/block/indexedimage.rs
@@ -46,6 +46,8 @@ impl IndexedImage {
 			},
 		};
 
+		let mcs = if mcs < 2 { 2 } else { mcs };
+
 		//FIXME: gen- This seems  broken
 		//let compressed = LZW::encode(mcs, &self.indicies);
 		let compressed = Encoder::new(weezl::BitOrder::Lsb, mcs)