@Sebastien: thanks for asking about the magic. This made me running the
hard test described in last comment. Now I fixed the last false
positives.

To accomplish this I added another 2 bits to the magic mask to only
match if a transport stream is not scrambled. This is no big problem
because scrambled streams could not be handled by common apps anyway.
With this mask GIMP resources don't match anymore. In an installed
Karmic not a single file matches. So now I consider it to be safe to
include it in Lucid (LTS).

Furthermore I removed the glob pattern *.m2t from video/mpeg. According
to http://en.wikipedia.org/wiki/MPEG_transport_stream and bug #89543 it
should match video/mp2t.

A sample transport stream file is attached to the last comment.
[Correction of last comment: I took the proposal of Daniel Leidert, not 
Stanislav - see upstream]

** Patch added: "Patch to add support for video/mp2t (MPEG-2 transport streams)"
   
http://launchpadlibrarian.net/41985697/freedesktop.org.xml-adding_video_mp2t.patch

** Summary changed:

- .ts files always get recognized as application/x-linguist and never as 
video/mpeg (transport stream)
+ .ts files always get recognized as application/x-linguist and never as 
video/mp2t (mpeg transport stream)

-- 
.ts files always get recognized as application/x-linguist and never as 
video/mp2t (mpeg transport stream)
https://bugs.launchpad.net/bugs/502642
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to