Fix std/gif "@end of data" for 0-frame GIFs

This fixes a regression introduced by 8d03a67e "Re-do image decoders'
call sequence state machine".

build-all.sh's script/print-nia-checksums.sh test once again matches
test/nia-checksums-of-data.txt:
-4c6d02c3 test/data/artificial-gif/no-frames.gif
+ba6e48f8 test/data/artificial-gif/no-frames.gif
This commit is contained in:
Nigel Tao committed 2022-06-02 16:48:06 +10:00
1 parent 21acc78c24
commit 65afe919b5
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -31424,7 +31424,9 @@ wuffs_gif__decoder__decode_image_config(
self->private_impl.f_frame_config_io_position,
v_ffio);
}
self->private_impl.f_call_sequence = 32;
if (self->private_impl.f_call_sequence == 0) {
self->private_impl.f_call_sequence = 32;
}
goto ok;
ok:
+3 -1
View File
@@ -137,7 +137,9 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
first_frame_is_opaque: ffio)
}
this.call_sequence = 0x20
if this.call_sequence == 0x00 {
this.call_sequence = 0x20
}
}
pub func decoder.set_report_metadata!(fourcc: base.u32, report: base.bool) {