mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Update GIF parser
This commit is contained in:
parent
8b06dffafb
commit
737c74b010
@ -35,9 +35,11 @@ class Gif(KaitaiStruct):
|
||||
self.global_color_table = self._root.ColorTable(io, self, self._root)
|
||||
|
||||
self.blocks = []
|
||||
while not self._io.is_eof():
|
||||
self.blocks.append(self._root.Block(self._io, self, self._root))
|
||||
|
||||
while True:
|
||||
_ = self._root.Block(self._io, self, self._root)
|
||||
self.blocks.append(_)
|
||||
if ((self._io.is_eof()) or (_.block_type == self._root.BlockType.end_of_file)) :
|
||||
break
|
||||
|
||||
class ImageData(KaitaiStruct):
|
||||
def __init__(self, _io, _parent=None, _root=None):
|
||||
|
Loading…
Reference in New Issue
Block a user