Skip to content

Commit c332d27

Browse files
authored
refactor(apng)
1 parent e5623d9 commit c332d27

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

filetype/types/image.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,14 @@ def match(self, buf):
7777
#acTL chunk in APNG should appears first than IDAT
7878
#IEND is end of PNG
7979
if (chunk_type == "IDAT" or chunk_type == "IEND"):
80-
return 0
80+
return False
8181
elif (chunk_type == "acTL"):
82-
return 1
82+
return True
8383

8484
#move to the next chunk by skipping data and crc (4 bytes)
8585
i += data_length + 4
86-
return 0
87-
else:
88-
return 0
86+
87+
return False
8988

9089

9190
class Png(Type):

0 commit comments

Comments
 (0)