Wireshark-bugs: [Wireshark-bugs] [Bug 6984] Cannot open some MPEG-2 Transport Stream files
Date: Tue, 27 Mar 2012 08:42:09 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6984

--- Comment #10 from Martin Kaiser <wireshark@xxxxxxxxx> 2012-03-27 08:42:08 PDT ---

Dear all,

the attached patch extends the mpeg2 ts format detection to take into account
that trailing bytes might be added to each packet.

Once it finds no sync after 188 bytes, it checks an additional 40 bytes for the
next sync byte and adjusts the packet size accordingly.

Only the 188 bytes of the actual ts packet are passed on to wiretap, the
trailer is omitted.

This works ok with all samples provided and some more files I tested with.

Best regards,

   Martin

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.