Change check example to be permissive

This commit is contained in:
Andreas Molzer 2021-09-18 01:12:11 +02:00
parent 7a6f443fb0
commit 5d357863eb
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ fn main() {
.unwrap_or_else(|| explain_usage());
let file = fs::File::open(&file)
.expect("failed to open input file");
let mut reader = gif::Decoder::new(file).unwrap();
let mut reader = {
let mut options = gif::DecodeOptions::new();
options.allow_unknown_blocks(true);
options.read_info(file).unwrap()
};
loop {
let frame = match reader.read_next_frame() {