Fix info for first frame of apng images getting clobbered when seeking to the first frame multiple times.

This commit is contained in:
Erik Soma 2024-01-07 16:00:58 -05:00
parent a786a0551b
commit 6d99f9193f

View File

@ -378,7 +378,7 @@ class PngStream(ChunkStream):
}
def rewind(self):
self.im_info = self.rewind_state["info"]
self.im_info = self.rewind_state["info"].copy()
self.im_tile = self.rewind_state["tile"]
self._seq_num = self.rewind_state["seq_num"]