Skip to content

Commit

Permalink
Merge pull request #1122 from kennethuil/interlaced-gif
Browse files Browse the repository at this point in the history
Properly decode interlaced animated gif frames
  • Loading branch information
HeroicKatora authored Feb 1, 2020
2 parents d43b391 + 46ef6fa commit eda3e56
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl<R: Read> Iterator for GifFrameIterator<R> {
}

let mut vec = vec![0; self.reader.buffer_size()];
if let Err(err) = self.reader.fill_buffer(&mut vec) {
if let Err(err) = self.reader.read_into_buffer(&mut vec) {
return Some(Err(err.into()));
}

Expand Down
Binary file added tests/images/gif/anim/interlaced.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eda3e56

Please sign in to comment.