Skip to content

Commit aba3b13

Browse files
committed
MimeDetector mp3 logic correction
1 parent 5c3cc99 commit aba3b13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AudioTools/CoreAudio/MimeDetector.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ class MimeDetector {
6666
const uint8_t* start = (const uint8_t*)data;
6767
if (start[0] == 0xFF && (start[1] == 0xF0 || start[1] == 0xF1 || start[1] == 0xF9)) {
6868
mime = "audio/aac";
69-
} else if (memcmp(start, "ID3", 3) == 0 || start[0] == 0xFF ||
70-
start[1] == 0xFE) {
69+
} else if (memcmp(start, "ID3", 3) == 0 || (start[0] == 0xFF && start[1] == 0xFE)) {
7170
mime = "audio/mpeg";
7271
} else if (memcmp(start, "RIFF", 4) == 0) {
7372
mime = "audio/vnd.wave";

0 commit comments

Comments
 (0)