Skip to content

Commit c42f61c

Browse files
committed
Support for auto-detecting MP3
1 parent 1ab438c commit c42f61c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/formats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ static char const * auto_detect_format(sox_format_t * ft, char const * ext)
8888
CHECK(sf , 0, 0, "" , 0, 4, "\144\243\004\0")
8989
CHECK(sox , 0, 0, "" , 0, 4, ".SoX")
9090
CHECK(sox , 0, 0, "" , 0, 4, "XoS.")
91+
CHECK(mp3 , 0, 0, "" , 0, 3, "ID3")
92+
CHECK(mp3 , 0, 0, "" , 0, 2, "\xFF\xFB")
9193

9294
if (ext && !strcasecmp(ext, "snd"))
9395
CHECK(sndr , 7, 1, "" , 0, 2, "\0")

0 commit comments

Comments
 (0)