mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-24 13:07:00 +03:00
Merge 583c33c9f7
into 4aef5d0743
This commit is contained in:
commit
522748a2f5
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user