]> git.lizzy.rs Git - plan9front.git/commit
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)
commit80fdafd1d6bc27d7a94fabc12f4af37285a17338
tree907af2fa0e7aceb97b4f50c85d95ee8b5aa945fb
parent0ba08200707e5d761cbe39d6b08174f8eb868125
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