From: Alex Musolino Date: Sun, 5 Apr 2020 13:56:52 +0000 (+0930) Subject: file: try ismp4() before ismp3() X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=80fdafd1d6bc27d7a94fabc12f4af37285a17338;p=plan9front.git 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. --- 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 */