From 80fdafd1d6bc27d7a94fabc12f4af37285a17338 Mon Sep 17 00:00:00 2001 From: Alex Musolino Date: Sun, 5 Apr 2020 23:26:52 +0930 Subject: 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. --- sys/src/cmd/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/file.c b/sys/src/cmd/file.c index 11577b3af..bd9d1afb5 100644 --- a/sys/src/cmd/file.c +++ b/sys/src/cmd/file.c @@ -201,8 +201,8 @@ int (*call[])(void) = isicocur, /* windows icon or cursor file */ isface, /* ascii face file */ istga, - ismp3, ismp4, + ismp3, /* last resorts */ ismung, /* entropy compressed/encrypted */ -- cgit v1.2.3