[File-cvs] CVS commit: file/magic/Magdir

Christos Zoulas christos at zoulas.com
Sun Feb 11 15:33:43 UTC 2024


Module Name:	file
Committed By:	christos
Date:		Sun Feb 11 15:33:43 UTC 2024

Modified Files:
	file/magic/Magdir: animation

Log Message:
PR/306: es20490446e: Not recognized: MPEG-2 transport stream
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 first packet contains
a PAT (fixed PID 0).  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.


To generate a diff of this commit:
cvs rdiff -r1.96 -r1.97 file/magic/Magdir/animation

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



More information about the File-cvs mailing list