From c7d8d94809fd5cdebc191c2ff86aa9c0c2d77dbf Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 7 Mar 2019 15:31:31 +0100 Subject: [PATCH] formats: mark paletted formats as packed --- nihav-core/src/formats.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nihav-core/src/formats.rs b/nihav-core/src/formats.rs index 69293c6..f7ef8d8 100644 --- a/nihav-core/src/formats.rs +++ b/nihav-core/src/formats.rs @@ -505,6 +505,7 @@ impl NAPixelFormaton { pub fn is_paletted(&self) -> bool { self.palette } pub fn get_elem_size(&self) -> u8 { self.elem_size } pub fn is_unpacked(&self) -> bool { + if self.palette { return false; } for chr in self.comp_info.iter() { if let Some(ref chromaton) = chr { if chromaton.is_packed() { return false; } -- 2.39.5