mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Discard std/gif's compressed buffer after decode
This commit is contained in:
1 parent
529ebb0a61
commit
0f27e97e28
2 files changed
+5
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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".
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user