diff options
| -rw-r--r-- | nihav-core/src/formats.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
