Fix ignore_too_much_pixel_data infinite loop

This commit is contained in:
Nigel Tao committed 2019-05-25 12:31:43 +10:00
1 parent 74a591ab2b
commit 5780b406dc
5 files changed
+81 -4

No files matched your search

+4 -2
View File
@@ -1009,8 +1009,10 @@ 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) and
(not this.quirk_enabled_ignore_too_much_pixel_data) {
if this.dst_y >= this.frame_rect_y1 {
if this.quirk_enabled_ignore_too_much_pixel_data {
return ok
}
return base."#too much data"
}