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 4bdb6fc commit a8af1b6Copy full SHA for a8af1b6
src/AudioTools/CoreAudio/AudioMetaData/MimeDetector.h
@@ -125,6 +125,9 @@ class MimeDetector {
125
static bool checkM4A(uint8_t* header, size_t len) {
126
if (len < 12) return false;
127
128
+ // prevent false detecton by mp3 files
129
+ if (memcmp(header, "ID3", 3) == 0) return false;
130
+
131
// Special hack when we position to start of mdat box
132
if (memcmp(header + 4, "mdat", 4) != 0) return true;
133
0 commit comments