]> granicus.if.org Git - file/commitdiff
Detect encrypted ADXes. (David Korth)
authorChristos Zoulas <christos@zoulas.com>
Sat, 23 Jun 2018 16:36:15 +0000 (16:36 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 23 Jun 2018 16:36:15 +0000 (16:36 +0000)
magic/Magdir/audio

index b1756adfefb3d8b48b86c36ef01b5c25616e819b..941975e6a53036a3b72aabf9d7483983fa1e5e84 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: audio,v 1.87 2018/06/23 16:36:04 christos Exp $
+# $File: audio,v 1.88 2018/06/23 16:36:15 christos Exp $
 # audio:  file(1) magic for sound formats (see also "iff")
 #
 # Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
 # https://en.wikipedia.org/wiki/ADX_(file_format)
 # https://wiki.multimedia.cx/index.php/CRI_ADX_file
 # Added by David Korth <gerbilsoft@gerbilsoft.com>
-0x00           beshort 0x8000
->(2.S-2)       string  (c)CRI          CRI ADX ADPCM audio
->>0x12         byte    x               v%u
->>0x04         byte    0x02            \b, pre-set prediction coefficients
->>0x04         byte    0x03            \b, standard ADX
->>0x04         byte    0x04            \b, exponential scale
->>0x04         byte    0x05            \b, AHX
->>0x08         belong  x               \b, %u Hz
->>0x12         byte    0x03
->>>0x02                beshort >0x2B
->>>>0x18       belong  !0              \b, looping
->>0x12         byte    0x04
->>>0x02                beshort >0x37
->>>>0x24       belong  !0              \b, looping
+0x00           beshort         0x8000
+>(2.S-2)       string          (c)CRI          CRI ADX ADPCM audio
+>>0x12         byte            x               v%u
+>>0x04         byte            0x02            \b, pre-set prediction coefficients
+>>0x04         byte            0x03            \b, standard ADX
+>>0x04         byte            0x04            \b, exponential scale
+>>0x04         byte            0x05            \b, AHX
+>>0x08         belong          x               \b, %u Hz
+>>0x12         byte            0x03
+>>>0x02                beshort         >0x2B
+>>>>0x18       belong          !0              \b, looping
+>>0x12         byte            0x04
+>>>0x02                beshort         >0x37
+>>>>0x24       belong          !0              \b, looping
+>>0x13         byte&0x08       0x08            \b, encrypted