]> granicus.if.org Git - file/commitdiff
Prevent conflicts with CRI ADX and Targa images. (GerbiSoft)
authorChristos Zoulas <christos@zoulas.com>
Sat, 23 Feb 2019 01:16:18 +0000 (01:16 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 23 Feb 2019 01:16:18 +0000 (01:16 +0000)
magic/Magdir/audio
magic/Magdir/images

index 3da9ad04c2300c985d3b10ed0e0465bd93e37e8c..690a299fd24e881fd63d41cfcfc53ee06fa5aea9 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: audio,v 1.97 2019/02/23 01:16:17 christos Exp $
+# $File: audio,v 1.98 2019/02/23 01:16:18 christos Exp $
 # audio:  file(1) magic for sound formats (see also "iff")
 #
 # Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
 >(2.S-2)       string          (c)CRI          CRI ADX ADPCM audio
 !:ext adx
 !:mime audio/x-adx
+!:strength +50
 >>0x12         byte            x               v%u
 >>0x04         byte            0x02            \b, pre-set prediction coefficients
 >>0x04         byte            0x03            \b, standard ADX
index 099bd55e0c2d750e257443f51befe4989743de00..65bfe3bd1ff56b4664b1b5a8c2ec06dc51cc8b40 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: images,v 1.154 2019/02/09 17:56:01 christos Exp $
+# $File: images,v 1.155 2019/02/23 01:16:18 christos Exp $
 # images:  file(1) magic for image formats (see also "iff", and "c-lang" for
 # XPM bitmaps)
 #
 # and Image Type 1 2 3 9 10 11 32 33
 # and Color Map Entry Size 0 15 16 24 32
 0      ubequad&0x00FeC400000000C0      0
+# Prevent conflicts with CRI ADX.
+>(2.S-2) belong        !0x28632943
 # skip more garbage like *.iso by looking for positive image type
->    ubyte                   >0
+>>2    ubyte                   >0
 # skip some compiled terminfo like xterm+tmux by looking for image type less equal 33
->>   ubyte                   <34
+>>>2   ubyte                   <34
 # skip arches.3200 , Finder.Root , Slp.1 by looking for low pixel depth 1 8 15 16 24 32
->>>16  ubyte                   1
->>>>         use             tga-image
->>>16  ubyte                   8
->>>>         use             tga-image
->>>16  ubyte                   15
->>>>         use             tga-image
->>>16  ubyte                   16
->>>>         use             tga-image
->>>16  ubyte                   24
->>>>         use             tga-image
->>>16  ubyte                   32
->>>>         use             tga-image
+>>>>16 ubyte                   1
+>>>>>0         use             tga-image
+>>>>16 ubyte                   8
+>>>>>0         use             tga-image
+>>>>16 ubyte                   15
+>>>>>0         use             tga-image
+>>>>16 ubyte                   16
+>>>>>0         use             tga-image
+>>>>16 ubyte                   24
+>>>>>0         use             tga-image
+>>>>16 ubyte                   32
+>>>>>0         use             tga-image
 #      display tga bitmap image information
 0      name                            tga-image
 >2     ubyte           <34             Targa image data