From fbfd4b73c7b847145d5e83d125a7e9d1b58d791d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20P=C3=B6schel?= Date: Tue, 2 Aug 2016 20:30:23 +0200 Subject: [PATCH 1/2] Fix MPEG-2 TS detection So far the MPEG-2 TS made assumptions which do not hold for the first packet of every MPEG-2 TS, e.g. that the Continuity Counter is 0 or the Payload Unit Start Indicator is set. This alternative approach exploits the fixed packet size of 188 bytes (192 bytes with BDAV MPEG-2 TS) and checks the first five packets for the Sync Byte 0x47. The used offsets partly seems to be a bit high in contrast to other formats, but MPEG-2 TS files are usually much bigger than that. https://bugs.freedesktop.org/show_bug.cgi?id=51118 --- freedesktop.org.xml.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 0a4c5fc..015066b 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -6196,7 +6196,24 @@ command to generate the output files. MPEG-2 TS Moving Picture Experts Group 2 Transport Stream - + + + + + + + + + + + + + + + + + + -- 2.9.2