Test that end_of_data is repeatedly returned
@@ -552,7 +552,9 @@ bool do_test_wuffs_gif_decode_animated(
}
}
- // There should be no more frames.
+ // There should be no more frames, no matter how many times we call
+ // decode_frame.
+ for (i = 0; i < 3; i++) {
z = wuffs_gif__decoder__decode_frame(&dec, &pb, 0, 0, src_reader,
((wuffs_base__slice_u8){}));
if (z != wuffs_base__suspension__end_of_data) {
@@ -560,6 +562,7 @@ bool do_test_wuffs_gif_decode_animated(
wuffs_base__suspension__end_of_data);
return false;
}
+ }
uint64_t got_num_frames = wuffs_gif__decoder__num_decoded_frames(&dec);
if (got_num_frames != want_num_frames) {
