fast image operations
Diffstat (limited to 'src/dyn/mod.rs')
| -rw-r--r-- | src/dyn/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dyn/mod.rs b/src/dyn/mod.rs index a760813..c36a7c1 100644 --- a/src/dyn/mod.rs +++ b/src/dyn/mod.rs @@ -161,7 +161,7 @@ impl DynImage<Box<[u8]>> { let mut dec = png::Decoder::new(r); dec.set_transformations(T::STRIP_16 | T::EXPAND); let mut reader = dec.read_info().unwrap(); - let mut buf = vec![0; reader.output_buffer_size()].into_boxed_slice(); + let mut buf = vec![0; reader.output_buffer_size().unwrap()].into_boxed_slice(); let info = reader.next_frame(&mut buf).unwrap(); use png::ColorType::*; match info.color_type { |