tsdemux: Handle continuity mismatch in more cases
authorEdward Hervey <edward@centricular.com>
Wed, 6 Nov 2019 13:22:07 +0000 (14:22 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Nov 2019 12:04:03 +0000 (12:04 +0000)
commitcfa0f1858075a3390def50250eafc89d270178d3
treed9ed7bff7730a9b876839732ad2d3134cd202014
parent88e5530f59162cf0f31a9cc1c09762ef39a82553
tsdemux: Handle continuity mismatch in more cases

Packets of a given PID are meant to have sequential continuity counters
(modulo 16). If there are not sequential, this is the sign of a broken
stream, which we then consider as a discontinuity.

But if that new packet is a frame start (PUSI is true), then we can resume
from that packet without any damage.
gst/mpegtsdemux/tsdemux.c