Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psi: ReadPMT skips over packets without a program map table #85

Merged
merged 2 commits into from
Jun 15, 2018

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