Skip to content

tsdemux: Limit the maximum PES payload size

PES packets with size 0 are unbounded, and could therefore overflow the 32-bit size accumulator.

Add a 32MB limit, which is larger than any PES packet should ever get. If one does, then output a 32MB chunk and continue.

Merge request reports

Loading