mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Decode a GIF local color table
This commit is contained in:
1 parent
584fc631a8
commit
0d33d3ef3a
4 files changed
+77
-33
No files matched your search
+11
-1
@@ -590,7 +590,7 @@ void test_wuffs_gif_decode_animated() {
|
||||
|
||||
// animated-red-blue.gif should have 4 frames.
|
||||
int i;
|
||||
for (i = 0; i < 0; i++) { // TODO: increase the 0 in "i < 0" to 4.
|
||||
for (i = 0; i < 4; i++) {
|
||||
got.wi = 0;
|
||||
status = wuffs_gif__decoder__decode_frame(&dec, got_writer, src_reader);
|
||||
if (status != WUFFS_GIF__STATUS_OK) {
|
||||
@@ -599,6 +599,16 @@ void test_wuffs_gif_decode_animated() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// There should be no more frames.
|
||||
got.wi = 0;
|
||||
status = wuffs_gif__decoder__decode_frame(&dec, got_writer, src_reader);
|
||||
if (status != WUFFS_GIF__SUSPENSION_END_OF_DATA) {
|
||||
FAIL("decode_frame: got %" PRIi32 " (%s), want %" PRIi32 " (%s)", status,
|
||||
wuffs_gif__status__string(status), WUFFS_GIF__SUSPENSION_END_OF_DATA,
|
||||
wuffs_gif__status__string(WUFFS_GIF__SUSPENSION_END_OF_DATA));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void test_wuffs_gif_decode_input_is_a_gif() {
|
||||
|
||||
Reference in new issue
Block a user