diff options
author | Alex Musolino <alex@musolino.id.au> | 2020-04-05 23:26:52 +0930 |
---|---|---|
committer | Alex Musolino <alex@musolino.id.au> | 2020-04-05 23:26:52 +0930 |
commit | 80fdafd1d6bc27d7a94fabc12f4af37285a17338 (patch) | |
tree | 907af2fa0e7aceb97b4f50c85d95ee8b5aa945fb /sys/src/cmd/file.c | |
parent | 0ba08200707e5d761cbe39d6b08174f8eb868125 (diff) |
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.
Diffstat (limited to 'sys/src/cmd/file.c')
-rw-r--r-- | sys/src/cmd/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |