mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- It's derived from the magic database of libmagic 5.14, but with most everything not related to mime types removed. - The custom database is always used by default for mime detection, but the more verbose file type detection will fall back on the default libmagic installation's database. The result is: mime type strings are now guaranteed to be consistent across platforms, but the verbose file type descriptions are not. - The custom database gets installed in $prefix/share/bro/magic, and should even be extensible if files with new patterns are added inside the directory. - The search path for the mime magic database can be controlled via BROMAGIC environment variable. - Remove mime_desc field from ftp.log. - Stop using the mime/file type canonifier with unit tests. - libmagic >= 5.04 is now a requirement.
36 lines
1.4 KiB
Text
36 lines
1.4 KiB
Text
# See COPYING file in this directory for original libmagic copyright.
|
|
#------------------------------------------------------------------------------
|
|
# $File: riff,v 1.22 2011/09/06 11:00:06 christos Exp $
|
|
# riff: file(1) magic for RIFF format
|
|
# See
|
|
#
|
|
# http://www.seanet.com/users/matts/riffmci/riffmci.htm
|
|
#
|
|
# AVI section extended by Patrik Radman <patrik+file-magic@iki.fi>
|
|
#
|
|
0 string RIFF RIFF (little-endian) data
|
|
# Microsoft WAVE format (*.wav)
|
|
>8 string WAVE \b, WAVE audio
|
|
!:mime audio/x-wav
|
|
# Corel Draw Picture
|
|
>8 string CDRA \b, Corel Draw Picture
|
|
!:mime image/x-coreldraw
|
|
# AVI == Audio Video Interleave
|
|
>8 string AVI\040 \b, AVI
|
|
!:mime video/x-msvideo
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Sony Wave64
|
|
# see http://www.vcs.de/fileadmin/user_upload/MBS/PDF/Whitepaper/Informations_about_Sony_Wave64.pdf
|
|
# 128 bit RIFF-GUID { 66666972-912E-11CF-A5D6-28DB04C10000 } in little-endian
|
|
0 string riff\x2E\x91\xCF\x11\xA5\xD6\x28\xDB\x04\xC1\x00\x00 Sony Wave64 RIFF data
|
|
# 128 bit + total file size (64 bits) so 24 bytes
|
|
# then WAVE-GUID { 65766177-ACF3-11D3-8CD1-00C04F8EDB8A }
|
|
>24 string wave\xF3\xAC\xD3\x11\x8C\xD1\x00\xC0\x4F\x8E\xDB\x8A \b, WAVE 64 audio
|
|
!:mime audio/x-w64
|
|
|
|
#------------------------------------------------------------------------------
|
|
# MBWF/RF64
|
|
# see EBU TECH 3306 http://tech.ebu.ch/docs/tech/tech3306-2009.pdf
|
|
0 string RF64\xff\xff\xff\xffWAVEds64 MBWF/RF64 audio
|
|
!:mime audio/x-wav
|