mpegtspacketizer: memcmp potentially seen_before data
authorVivia Nikolaidou <vivia@ahiru.eu>
Mon, 16 Aug 2021 15:15:42 +0000 (18:15 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 20 Sep 2021 09:31:08 +0000 (09:31 +0000)
commitfcad4cc646a23e4e621ec5e8485958ab78d98090
tree9f5292d4a4cc376ab6cda5010dda9df3ee95b148
parentf74a2bd303a55501067ee3e6b1def3bbd3807880
mpegtspacketizer: memcmp potentially seen_before data

Theoretically the version number is incremented every time there's a new
section, but in a world of streaming we can't easily make that
assumption.

An example of a broken use case is when we're cat-ing two mpeg-ts files
together, which is equivalent of capturing a DVB stream while switching
channels. A set-top box would know that we switched the channels and
reset the demuxer, but in practice this might not happen.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2468>
gst/mpegtsdemux/mpegtspacketizer.c