tsdemux: Handle continuity mismatch in more cases
authorEdward Hervey <edward@centricular.com>
Wed, 6 Nov 2019 13:22:07 +0000 (14:22 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 7 Nov 2019 09:17:25 +0000 (09:17 +0000)
commit60cec38591a180c61fc3e1064502616b70c0a233
treebc4b6194a2b1a3556144158b279b504197502972
parent56333073a98fb04f58bbcd27c1f023b138dd8019
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