]> granicus.if.org Git - file/commitdiff
PR/382: add audio and video mime types as suggested by:
authorChristos Zoulas <christos@zoulas.com>
Tue, 23 Sep 2014 12:57:41 +0000 (12:57 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 23 Sep 2014 12:57:41 +0000 (12:57 +0000)
https://developer.mozilla.org/en-US/docs/Web/HTTP/\
    Configuring_servers_for_Ogg_media

magic/Magdir/vorbis

index dac27666bb81a820c906cce4e86dfae16154500b..68a19333e880ce9b93a9af479bb22097ab3ed7ac 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: vorbis,v 1.17 2014/04/28 12:04:50 christos Exp $
+# $File: vorbis,v 1.18 2014/04/30 21:41:02 christos Exp $
 # vorbis:  file(1) magic for Ogg/Vorbis files
 #
 # From Felix von Leitner <leitner@fefe.de>
@@ -23,7 +23,6 @@
 # --- Ogg Framing ---
 #0             search/1000     OggS            Ogg data
 0              string  OggS            Ogg data
-!:mime         application/ogg
 >4             byte            !0              UNKNOWN REVISION %u
 ##>4           byte            0               revision 0
 >4             byte            0
 # non-Vorbis content: FLAC (Free Lossless Audio Codec, http://flac.sourceforge.net)
 >>28           string          \x7fFLAC        \b, FLAC audio
 # non-Vorbis content: Theora
+!:mime         audio/ogg
 >>28           string          \x80theora      \b, Theora video
+!:mime         video/ogg
 # non-Vorbis content: Kate
 >>28           string          \x80kate\0\0\0\0        \b, Kate
+!:mime         application/ogg
 >>>37          ubyte           x               v%u
 >>>38          ubyte           x               \b.%u,
 >>>40          byte            0               utf8 encoding,
 >>>76          string          \0              no category set
 # non-Vorbis content: Skeleton
 >>28           string          fishead\0       \b, Skeleton
+!:mime         application/ogg
 >>>36          short           x               v%u
 >>>40          short           x               \b.%u
 # non-Vorbis content: Speex
 >>28           string          Speex\ \ \      \b, Speex audio
+!:mime         audio/ogg
 # non-Vorbis content: OGM
 >>28           string          \x01video\0\0\0 \b, OGM video
+!:mime         video/ogg
 >>>37          string/c        div3            (DivX 3)
 >>>37          string/c        divx            (DivX 4)
 >>>37          string/c        dx50            (DivX 5)
 >>>37          string/c        xvid            (XviD)
 # --- First vorbis packet - general header ---
 >>28           string          \x01vorbis      \b, Vorbis audio,
+!:mime         audio/ogg
 >>>35          lelong          !0              UNKNOWN VERSION %u,
 ##>>>35                lelong          0               version 0,
 >>>35          lelong          0