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

fix: look at all program map tables for ts stream types #28

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

brandonocasey
Copy link
Contributor

We need to look at all program map tables in a ts file to determine what streams it contains. If we don't we may run into the scenario where streams are added that we don't account for.

@@ -1,6 +1,9 @@
import {bytesMatch, toUint8} from './byte-helpers.js';
const SYNC_BYTE = 0x47;

// use of maxPes is deprecated as we should always look at
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should make sure to add this to the commit message when we merge

@brandonocasey brandonocasey merged commit e00a396 into main Jul 15, 2021
@brandonocasey brandonocasey deleted the fix/look-at-all-pmt branch July 15, 2021 15:19
brandonocasey added a commit that referenced this pull request Jul 15, 2021
use of maxPes in `m2ts-helpers#parseTs` is deprecated. We should always look at all pes packets to prevent being caught off guard by changes in that stream that happen after the pes specified.
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