mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Tweak wuffs_gif__quirk_reject_empty_frame
This commit is contained in:
1 parent
d41430c4f5
commit
08dd41aa93
3 files changed
+17
-26
No files matched your search
@@ -9395,6 +9395,14 @@ wuffs_gif__decoder__decode_frame(wuffs_gif__decoder* self,
|
||||
goto suspend;
|
||||
}
|
||||
}
|
||||
if (self->private_impl.f_quirk_enabled_reject_empty_frame &&
|
||||
((self->private_impl.f_frame_rect_x0 ==
|
||||
self->private_impl.f_frame_rect_x1) ||
|
||||
(self->private_impl.f_frame_rect_y0 ==
|
||||
self->private_impl.f_frame_rect_y1))) {
|
||||
status = wuffs_gif__error__bad_frame_size;
|
||||
goto exit;
|
||||
}
|
||||
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(2);
|
||||
status = wuffs_gif__decoder__decode_id_part1(self, a_dst, a_src);
|
||||
if (status) {
|
||||
@@ -10605,14 +10613,6 @@ wuffs_gif__decoder__decode_id_part0(wuffs_gif__decoder* self,
|
||||
self->private_impl.f_frame_rect_y1 += self->private_impl.f_frame_rect_y0;
|
||||
self->private_impl.f_dst_x = self->private_impl.f_frame_rect_x0;
|
||||
self->private_impl.f_dst_y = self->private_impl.f_frame_rect_y0;
|
||||
if (self->private_impl.f_quirk_enabled_reject_empty_frame &&
|
||||
((self->private_impl.f_frame_rect_x0 ==
|
||||
self->private_impl.f_frame_rect_x1) ||
|
||||
(self->private_impl.f_frame_rect_y0 ==
|
||||
self->private_impl.f_frame_rect_y1))) {
|
||||
status = wuffs_gif__error__bad_frame_size;
|
||||
goto exit;
|
||||
}
|
||||
if ((self->private_impl.f_call_sequence == 0) &&
|
||||
!self->private_impl.f_quirk_enabled_image_bounds_are_strict) {
|
||||
self->private_impl.f_width = wuffs_base__u32__max(
|
||||
|
||||
Reference in new issue
Block a user