Add wuffs_gif__quirk_ignore_too_much_pixel_data

This commit is contained in:
Nigel Tao committed 2019-05-04 14:04:28 +10:00
1 parent a1f777b16e
commit 24a2f12c30
3 files changed
+32 -8

No files matched your search

+2 -1
View File
@@ -977,7 +977,8 @@ pri func decoder.copy_to_image_buffer!(pb ptr base.pixel_buffer, src slice base.
while src_ri < args.src.length() {
src = args.src[src_ri:]
if this.dst_y >= this.frame_rect_y1 {
if (this.dst_y >= this.frame_rect_y1) and
(not this.quirk_enabled_ignore_too_much_pixel_data) {
return base."#too much data"
}