Stuff those bytes
Monday, September 21st, 2009When writing transport stream packets to a file, don’t forget to add all 0xFF in the unused space at the end of the packet. This is very important, otherwise software like VLC will think that a new packet is starting early and get confused.