From d75e887857eb129f3e13a06162380f8ec668a4fe Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sat, 23 Feb 2019 01:16:18 +0000 Subject: [PATCH] Prevent conflicts with CRI ADX and Targa images. (GerbiSoft) --- magic/Magdir/audio | 3 ++- magic/Magdir/images | 32 +++++++++++++++++--------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/magic/Magdir/audio b/magic/Magdir/audio index 3da9ad04..690a299f 100644 --- a/magic/Magdir/audio +++ b/magic/Magdir/audio @@ -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), @@ -907,6 +907,7 @@ >(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 diff --git a/magic/Magdir/images b/magic/Magdir/images index 099bd55e..65bfe3bd 100644 --- a/magic/Magdir/images +++ b/magic/Magdir/images @@ -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) # @@ -27,23 +27,25 @@ # 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 ->2 ubyte >0 +>>2 ubyte >0 # skip some compiled terminfo like xterm+tmux by looking for image type less equal 33 ->>2 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 ->>>>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 +>>>>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 -- 2.50.1