From ac9552ce83d2955a96a4d7a5cfde7c113ec5a4c5 Mon Sep 17 00:00:00 2001
From: Quantum <quantum2048@gmail.com>
Date: Tue, 9 Mar 2021 15:47:32 -0500
Subject: [PATCH] Relax *.ani file length requirement in RIFF header

Many *.ani files online have incorrect length in the RIFF header, see #5, #6
---
 win2xcur/parser/ani.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win2xcur/parser/ani.py b/win2xcur/parser/ani.py
index d73369c..c436a07 100644
--- a/win2xcur/parser/ani.py
+++ b/win2xcur/parser/ani.py
@@ -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)