Skip to content

Commit dc7197e

Browse files
committed
MimeDetector
1 parent e1b4350 commit dc7197e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AudioTools/CoreAudio/MimeDetector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ class MimeDetector {
6464
const char* mime = nullptr;
6565
if (len > 4) {
6666
const uint8_t* start = (const uint8_t*)data;
67-
if (start[0] == 0xFF && start[1] == 0xF1) {
67+
if (start[0] == 0xFF && (start[1] == 0xF0 || start[1] == 0xF1 || start[1] == 0xF9)) {
6868
mime = "audio/aac";
6969
} else if (memcmp(start, "ID3", 3) == 0 || start[0] == 0xFF ||
70-
start[0] == 0xFE) {
70+
start[1] == 0xFE) {
7171
mime = "audio/mpeg";
7272
} else if (memcmp(start, "RIFF", 4) == 0) {
7373
mime = "audio/vnd.wave";

0 commit comments

Comments
 (0)