GNOME Bugzilla – Bug 737569
tsdemux: valid data is discarded if PES start packet is the first packet after discontinuity
Last modified: 2014-10-14 07:45:26 UTC
Created attachment 287327 [details] [review] tsdemux: do not discard on discont if PES start If a discontinuity in the stream is detected the incoming data is discarded until a new PES packet start is received. If the discontinuity is detected at a PES packet start, this means that an entire valid PES packet is discarded. The attached patch will prevent a PES packet from being discarded, if it starts when the discontinuity is detected.
Well spotted ! commit 1b8e76d235f4adc42fdbc2f4b63f822d74097622 Author: Jesper Larsen <knorr.jesper@gmail.com> Date: Mon Sep 29 10:01:27 2014 +0200 tsdemux: do not discard on discont if PES start If a discontinuity in the stream is detected, data is discarded until a new PES starts. If the first packet after the discontinuity is also the start of a PES, there is no reason to discard the packets. https://bugzilla.gnome.org/show_bug.cgi?id=737569