tsdemux: Limit the maximum PES payload size
authorJan Schmidt <jan@centricular.com>
Fri, 28 Jun 2019 05:04:29 +0000 (15:04 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 21 Aug 2019 18:07:02 +0000 (18:07 +0000)
commiteaf918df0366975c05003b4c2a98e077b0106483
treede7b0c673ad3f27585c7b28375b69b11f46be49f
parent15c10618a229087f55aa06c3e6c4f96f442020fc
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.
gst/mpegtsdemux/tsdemux.c