Skip to content

Conversation

@tmm1
Copy link
Contributor

@tmm1 tmm1 commented Jun 13, 2018

Following up on #75

Some streams (ironically those I see coming from my comcast cable feed) can contain multiple tables on the PMT pid. These include cable-specific SCTE tables (0xc0), in addition to the usual PMT table (0x2).

Normally both tables are combined into one TS packet, but sometimes a single TS packet only contains the SCTE table. Then the following TS packet contains the PMT table.

This patch fixes ReadPMT to ignore packets that do not contain the PMT table, and to reset its state and keep reading until it actually finds a real PMT.

@guygrigsby guygrigsby merged commit 2ca0dae into Comcast:master Jun 15, 2018
@tmm1 tmm1 deleted the pmt-missing-table branch June 15, 2018 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants