Discard std/gif's compressed buffer after decode

This commit is contained in:
Nigel Tao committed 2018-12-22 13:19:33 +11:00
1 parent 529ebb0a61
commit 0f27e97e28
2 files changed
+5

No files matched your search

+2
View File
@@ -9603,6 +9603,8 @@ wuffs_gif__decoder__decode_id_part1(wuffs_gif__decoder* self,
}
}
label_0_break:;
self->private_impl.f_compressed_ri = 0;
self->private_impl.f_compressed_wi = 0;
goto ok;
ok:
+3
View File
@@ -685,6 +685,9 @@ pri func decoder.decode_id_part1!??(dst ptr base.pixel_buffer, src base.io_reade
}
}
this.compressed_ri = 0
this.compressed_wi = 0
// TODO: check for "not enough pixel data".
}