We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21682f6 commit ac9552cCopy full SHA for ac9552c
win2xcur/parser/ani.py
@@ -32,7 +32,7 @@ def can_parse(cls, blob: bytes) -> bool:
32
signature, size, subtype = cls.RIFF_HEADER.unpack(blob[:cls.RIFF_HEADER.size])
33
except struct.error:
34
return False
35
- return signature == cls.SIGNATURE and size == len(blob) - 8 and subtype == cls.ANI_TYPE
+ return signature == cls.SIGNATURE and subtype == cls.ANI_TYPE
36
37
def __init__(self, blob: bytes) -> None:
38
super().__init__(blob)
0 commit comments