In the file(1) utility shipped with OpenBSD 5.8, non-audio files are being detected as having a sampling frequency and a set number of audio channels.
Please see the following mailing list post: http://marc.info/?l=openbsd-misc&m=145147348920055&w=2 It appears that the MP3 logic in the magic file is incorrect. As seen in the source code: I believe the issue is with /src/usr.bin/file/magdir/animation on line 280. # MP3, M1A # modified by Joerg Jenderek # GRR the original test are too common for many DOS files # so don't accept as MP3 until we've tested the rate 0 beshort&0xFFFE The initial matching seems to be occurring because the line is missing the proper value to match to. The further tests for sampling rate and number of independent audio channels is then occurring. I believe it should be: # MP3, M1A # modified by Joerg Jenderek # GRR the original test are too common for many DOS files # so don't accept as MP3 until we've tested the rate 0 beshort&0xFFFE 0xFFFA Thanks, Brandon Vincent
