Package: file
Version: 4.17-2
Severity: wishlist
Tags: patch

Attached is a patch to detect m4v files. These are otherwise incorrectly
named mp4 files that are common in iTunes.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7.060804-02
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)

Versions of packages file depends on:
ii  libc6                        2.3.6.ds1-2 GNU C Library: Shared libraries
ii  libmagic1                    4.17-2      File type determination library us
ii  zlib1g                       1:1.2.3-13  compression library - runtime

file recommends no packages.

-- no debconf information
diff --git a/magic/Magdir/animation b/magic/Magdir/animation
index 95c842e..f9a5465 100644
--- a/magic/Magdir/animation
+++ b/magic/Magdir/animation
@@ -36,6 +36,7 @@ # SGI and Apple formats
 >8     string          mmp4            \b, MPEG v4 system, 3GPP Mobile
 >8     string          avc1            \b, MPEG v4 system, 3GPP JVT AVC
 >8     string/B        M4A             \b, MPEG v4 system, iTunes AAC-LC
+>8     string/B        M4V             \b, MPEG v4 system, iTunes AVC-LC
 >8     string/B        M4P             \b, MPEG v4 system, iTunes AES encrypted
 >8     string/B        M4B             \b, MPEG v4 system, iTunes bookmarked
 >8     string/B        qt              \b, Apple QuickTime movie
diff --git a/magic/magic.mime b/magic/magic.mime
index 7b81153..996b7f5 100644
--- a/magic/magic.mime
+++ b/magic/magic.mime
@@ -631,6 +631,7 @@ # Added ISO mimes
 >8      string          avc1          video/3gpp
 >8     string          mmp4          video/mp4
 >8     string/B        M4A           audio/mp4
+>8     string/B        M4V           video/mp4
 >8     string/B        qt            video/quicktime
 # The contributor claims:
 #   I couldn't find a real magic number for these, however, this

Reply via email to