Skip to content

Commit 7283d2e

Browse files
authored
Merge pull request #160 from CatKasha/patch-4
add animated avif detection
2 parents b5e2d92 + 4d99a7e commit 7283d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filetype/types/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def match(self, buf):
376376
return False
377377

378378
major_brand, minor_version, compatible_brands = self._get_ftyp(buf)
379-
if major_brand == 'avif':
379+
if major_brand in ['avif', 'avis']:
380380
return True
381381
if major_brand in ['mif1', 'msf1'] and 'avif' in compatible_brands:
382382
return True

0 commit comments

Comments
 (0)