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 19:09:50 +0000 (20:09 +0100)
commitcd8bb641f81b7a7a0379aff9334b36a8eb9e638f
treedb7907a21ef7040f15dc499cdb2a56a2ae7210f1
parent1bf81982328a9ac388e167906e38966f7defef53
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