Skip to content

Commit

Permalink
Merge pull request #84 from dosas/feature/issue-78
Browse files Browse the repository at this point in the history
Extend mp3 matcher
  • Loading branch information
h2non authored Dec 22, 2020
2 parents 1dae0a6 + 11cf76f commit 54a34c8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions filetype/types/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ def __init__(self):
def match(self, buf):
return (len(buf) > 2 and
((buf[0] == 0x49 and
buf[1] == 0x44 and
buf[2] == 0x33) or
(buf[0] == 0xFF and
buf[1] == 0xfb)))
buf[1] == 0x44 and
buf[2] == 0x33) or
(buf[0] == 0xFF and
buf[1] == 0xF2) or
(buf[0] == 0xFF and
buf[1] == 0xF3) or
(buf[0] == 0xFF and
buf[1] == 0xFB)))


class M4a(Type):
Expand Down

0 comments on commit 54a34c8

Please sign in to comment.