mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
Relax *.ani file length requirement in RIFF header
Many *.ani files online have incorrect length in the RIFF header, see #5, #6
This commit is contained in:
parent
21682f624d
commit
ac9552ce83
|
@ -32,7 +32,7 @@ class ANIParser(BaseParser):
|
|||
signature, size, subtype = cls.RIFF_HEADER.unpack(blob[:cls.RIFF_HEADER.size])
|
||||
except struct.error:
|
||||
return False
|
||||
return signature == cls.SIGNATURE and size == len(blob) - 8 and subtype == cls.ANI_TYPE
|
||||
return signature == cls.SIGNATURE and subtype == cls.ANI_TYPE
|
||||
|
||||
def __init__(self, blob: bytes) -> None:
|
||||
super().__init__(blob)
|
||||
|
|
Loading…
Reference in a new issue