GNOME Bugzilla – Bug 677443
[tsdemux/tsparse] Handle multiple SI in one packet
Last modified: 2013-07-07 06:38:18 UTC
Some streams have multiple sections in one packet. The current code assumes there is only one per packet, leading to loss of information. This seems common on Sky/BBC DVB-T streams for EIT sections.
commit f58f13e874d2c744942b3e54434495cec54ad937 Author: Edward Hervey <edward@collabora.com> Date: Sun Jul 7 08:29:37 2013 +0200 mpegtsdemux: Fix multiple-SI detection/parsing We had two issues with the previous code: 1) We were badly handling PUSI-flagged packets. We were discarding the initial data (if pointer != 0) whereas we should have been accumulating it with the previous data (if there was a continuity of course). => First series of information loss 2) We were not checking whether there were more sections after the end of one (i.e. when the following byte was not a stuff byte). This fixes those two issues. Fixes #677443 https://bugzilla.gnome.org/show_bug.cgi?id=677443