mptsd
mptsd copied to clipboard
Remove padding from the input buffer
When reading from an input, if the packet is padding then discard it and continue reading.
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.