]> git.lizzy.rs Git - plan9front.git/commitdiff
file: try ismp4() before ismp3()
authorAlex Musolino <alex@musolino.id.au>
Sun, 5 Apr 2020 13:56:52 +0000 (23:26 +0930)
committerAlex Musolino <alex@musolino.id.au>
Sun, 5 Apr 2020 13:56:52 +0000 (23:26 +0930)
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

index 11577b3af784b01863f87f5c97bc5728ffc57529..bd9d1afb5b492146277b6c53411a34177dbc2026 100644 (file)
@@ -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 */