From c4ede682ec9cc43651c1a19682d0102b7886bb98 Mon Sep 17 00:00:00 2001 From: Genny Date: Sat, 24 Dec 2022 02:37:30 -0600 Subject: MCS must be 2 --- gifed/src/block/indexedimage.rs | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit 1.4.1-3-g733a5