diff --git a/CHANGES b/CHANGES index 17f18ffb0e..b4bc8adbf2 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ +2.4-94 | 2015-08-21 17:31:32 -0700 + + * Add file type detection support for video/MP2T. (Mike Freemon) + 2.4-93 | 2015-08-21 17:23:39 -0700 * Make plugin install honor DESTDIR= convention. (Jeff Barber) diff --git a/VERSION b/VERSION index e95592a8cb..1b85ec1580 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4-93 +2.4-94 diff --git a/scripts/base/frameworks/files/magic/video.sig b/scripts/base/frameworks/files/magic/video.sig index 5d499f2119..d939c15618 100644 --- a/scripts/base/frameworks/files/magic/video.sig +++ b/scripts/base/frameworks/files/magic/video.sig @@ -71,6 +71,14 @@ signature file-mp2p { file-magic /\x00\x00\x01\xba([\x40-\x7f\xc0-\xff])/ } +# MPEG transport stream data. These files typically have the extension "ts". +# Note: The 0x47 repeats every 188 bytes. Using four as the number of +# occurrences for the test here is arbitrary. +signature file-mp2t { + file-mime "video/mp2t", 40 + file-magic /^(\x47.{187}){4}/ +} + # Silicon Graphics video signature file-sgi-movie { file-mime "video/x-sgi-movie", 70 @@ -94,3 +102,4 @@ signature file-3gpp { file-mime "video/3gpp", 60 file-magic /^....ftyp(3g[egps2]|avc1|mmp4)/ } +