Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All TS packets are expected to start with the sync byte 0x47, and TS files are expected to start at the start of a packet. Because of that, we assumed that any TS file that did not start with the sync byte of 0x47 is invalid. However, it is possible that a TS file might not start on a sync byte... perhaps the first few bytes got cut off, for some reason? In those cases, it would be better to just drop that cut-off first packet, instead of entirely rejecting the TS file. This CL changes the HLS parser to keep looking forward for the length of a few packets for the first sync byte, when parsing TS files to try to find their start time. Closes shaka-project#3580 Change-Id: I0bace4b3a84398e09046828d749f3f025dfad26f
- Loading branch information