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

Remove padding from the input buffer #22

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

lars18th
Copy link
Contributor

When reading from an input, if the packet is padding then discard it and continue reading.

When reading from an input, if the packet is padding then discard it and continue reading.
@lars18th lars18th mentioned this pull request Jun 19, 2018
@lars18th
Copy link
Contributor Author

Hi,

The first commit has an error, because the MIX thread reads from the input buffer and not from the stream. And the input buffer has out NULL packets when reading. Sorry, it's my fault!

However, this patch refuses to put unknown packets (pid > 0x1fff) in the input buffer. This makes the tool more tolerable with sources containing transmission errors.

SourceDoctor added a commit to SourceDoctor/mptsd that referenced this pull request Sep 7, 2022
@gfto gfto merged commit 21e5ba6 into gfto:master Mar 13, 2024
@lars18th lars18th deleted the remove-input-padding branch March 13, 2024 07:00
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