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 5c3cc99 commit aba3b13Copy full SHA for aba3b13
src/AudioTools/CoreAudio/MimeDetector.h
@@ -66,8 +66,7 @@ class MimeDetector {
66
const uint8_t* start = (const uint8_t*)data;
67
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[1] == 0xFE) {
+ } else if (memcmp(start, "ID3", 3) == 0 || (start[0] == 0xFF && start[1] == 0xFE)) {
71
mime = "audio/mpeg";
72
} else if (memcmp(start, "RIFF", 4) == 0) {
73
mime = "audio/vnd.wave";
0 commit comments