Bug 24690

Summary: Support for MPEG Transport Stream (video/MP2T)
Product: shared-mime-info Reporter: Christian Kellner <gicmo>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: daniel.leidert.spam, oliver.joos
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: proposed patch

Description Christian Kellner 2009-10-23 04:21:14 UTC
Support for the "MPEG Transport Stream" seem to be missing from the shared mime info. We got an upstream bug report filed against GIO that .ts files are incorrectly detected as "application/x-linguist" not "video/MP2T" ("dirac encoded video file"). Upstream bug report is https://bugzilla.gnome.org/show_bug.cgi?id=599347. More information on MPEG Transport Stream e.g. on http://en.wikipedia.org/wiki/MPEG_transport_stream
Comment 1 Daniel Leidert 2010-01-29 10:41:04 UTC
Created attachment 32902 [details] [review]
proposed patch

Patch attached. This is based on RFC 3555. It does not use the mask and big32 values as found in files magic database. This failed at least with the testcase provided in the bug-report mentioned in the OP. I cannot provide any test cases.
Comment 2 Daniel Leidert 2010-01-29 12:58:18 UTC
Duplicate of #14276.

*** This bug has been marked as a duplicate of bug 14276 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.