Skip to content

Commit

Permalink
Stop handling unreachable None case in fn next_raw_interlaced_row.
Browse files Browse the repository at this point in the history
This is a follow-up to the feedback at
#500 (comment)
  • Loading branch information
anforowicz authored and kornelski committed Sep 24, 2024
1 parent 59043bd commit 16e624f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,8 @@ impl<R: Read> Reader<R> {
}

match self.decoder.decode_next(&mut self.data_stream)? {
Some(Decoded::ImageData) => {}
Some(Decoded::ImageDataFlushed) | None /* after IEND chunk */ => {
self.subframe.consumed_and_flushed = true;
}
Some(Decoded::ImageData) => (),
Some(Decoded::ImageDataFlushed) => self.subframe.consumed_and_flushed = true,
_ => (),
}
}
Expand Down

0 comments on commit 16e624f

Please sign in to comment.