This commit is contained in:
Ville-Pekka Vainio 2025-09-22 23:39:52 +10:00 committed by GitHub
commit 522748a2f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ def _accept(prefix: bytes) -> bool:
return (
len(prefix) >= 16
and i16(prefix, 4) in [0xAF11, 0xAF12]
and i16(prefix, 12) == 8 # 8-bit colour
and i16(prefix, 14) in [0, 3] # flags
)