ref: 7eca0297b8c0c25d1154558d62301a5b2675825b
parent: 9afdec41704fde1232e219ceb073eac9f43c1740
author: Alex Musolino <alex@musolino.id.au>
date: Sun Apr 5 19:26:52 EDT 2020
file: try ismp4() before ismp3() It is possible to find the mp3 sync word near the start of an mp4 file. As such, file(1) could incorrectly identify some mp4s as mp3s.
--- a/sys/src/cmd/file.c
+++ b/sys/src/cmd/file.c
@@ -201,8 +201,8 @@
isicocur, /* windows icon or cursor file */
isface, /* ascii face file */
istga,
- ismp3,
ismp4,
+ ismp3,
/* last resorts */
ismung, /* entropy compressed/encrypted */
--
⑨