Skip to content

Commit 14a8883

Browse files
author
Florian Treml
committed
Recognize MP3 header
1 parent 899a84c commit 14a8883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/convert/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const _isMP3 = (buf) => {
2222
buf[1] === 68 &&
2323
buf[2] === 51) || (
2424
buf[0] === 255 &&
25-
(buf[1] === 251 || buf[1] === 250 || buf[1] === 243 || buf[1] === 242)
25+
(buf[1] >= 224)
2626
)
2727
}
2828

0 commit comments

Comments
 (0)