Reduce MP3 detection false positives

This commit is contained in:
Vanilagy
2025-07-11 10:07:45 +02:00
parent 9072a7a9f7
commit 514a533445
3 changed files with 10 additions and 4 deletions
+4
View File
@@ -85,6 +85,10 @@ export const readFrameHeader = (word: number, reader: { pos: number; fileSize: n
reader.pos += 1;
if (firstByte !== 0xff) {
return null;
}
if ((secondByte & 0xe0) !== 0xe0) {
return null;
}