fflewddur / tivolibre

Java app and library for decoding TiVo files to standard MPEG files.
GNU General Public License v3.0
34 stars 4 forks source link

Masking bytes after loss of sync #10

Open fflewddur opened 9 years ago

fflewddur commented 9 years ago

After a loss of TS synchronization, bytes at intervals of 0x100000 are masked with 0x000000C0 (as if the scrambled bits were being cleared). If the byte is a valid TS sync byte (0x47), usually the following TS frame (188 bytes later) will also be masked. In at least one instance, however, this doesn't happen. It'd be nice to figure out why, but this issue does not impact playback.