We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1b4350 commit dc7197eCopy full SHA for dc7197e
src/AudioTools/CoreAudio/MimeDetector.h
@@ -64,10 +64,10 @@ class MimeDetector {
64
const char* mime = nullptr;
65
if (len > 4) {
66
const uint8_t* start = (const uint8_t*)data;
67
- if (start[0] == 0xFF && start[1] == 0xF1) {
+ if (start[0] == 0xFF && (start[1] == 0xF0 || start[1] == 0xF1 || start[1] == 0xF9)) {
68
mime = "audio/aac";
69
} else if (memcmp(start, "ID3", 3) == 0 || start[0] == 0xFF ||
70
- start[0] == 0xFE) {
+ start[1] == 0xFE) {
71
mime = "audio/mpeg";
72
} else if (memcmp(start, "RIFF", 4) == 0) {
73
mime = "audio/vnd.wave";
0 commit comments