X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Fformats.rs;h=f7ef8d881caedeb4a8f7062293cb089d49fea814;hb=c7d8d94809fd5cdebc191c2ff86aa9c0c2d77dbf;hp=69293c68958e6b13a5f2701249a8f8b6984f4310;hpb=c6297d1f0324638b5d9d818b57c53f626a4e5493;p=nihav.git 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; }