Tweak wuffs_gif__quirk_reject_empty_frame

This commit is contained in:
Nigel Tao committed 2019-05-26 16:25:01 +10:00
1 parent d41430c4f5
commit 08dd41aa93
3 files changed
+17 -26

No files matched your search

+3 -11
View File
@@ -1128,13 +1128,6 @@ const char* test_wuffs_gif_decode_zero_width_frame() {
status = wuffs_gif__decoder__decode_image_config(
&dec, &ic, wuffs_base__io_buffer__reader(&src));
if (status) {
if (q == 2) {
if (status != want) {
RETURN_FAIL("q=%d: decode_image_config: got \"%s\", want \"%s\"", q,
status, want);
}
continue;
}
RETURN_FAIL("q=%d: decode_image_config: \"%s\"", q, status);
}
@@ -1145,12 +1138,11 @@ const char* test_wuffs_gif_decode_zero_width_frame() {
RETURN_FAIL("q=%d: set_from_slice: \"%s\"", q, status);
}
status = wuffs_gif__decoder__decode_frame(
const char* got = wuffs_gif__decoder__decode_frame(
&dec, &pb, wuffs_base__io_buffer__reader(&src), global_work_slice,
NULL);
if (status != want) {
RETURN_FAIL("q=%d: decode_frame: got \"%s\", want \"%s\"", q, status,
want);
if (got != want) {
RETURN_FAIL("q=%d: decode_frame: got \"%s\", want \"%s\"", q, got, want);
}
}
return NULL;