mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
mpegtsdemux: fix section_data leak
If packet->payload_unit_start_indicator is true and pointer 0, there is no discontinuity check. Therefore there could be a previous section not complete that need to be cleared. https://bugzilla.gnome.org/show_bug.cgi?id=758010
This commit is contained in:
parent
6eae0c7e18
commit
d65d8657e6
1 changed files with 1 additions and 2 deletions
|
@ -228,8 +228,6 @@ static void
|
|||
mpegts_packetizer_stream_free (MpegTSPacketizerStream * stream)
|
||||
{
|
||||
mpegts_packetizer_clear_section (stream);
|
||||
if (stream->section_data)
|
||||
g_free (stream->section_data);
|
||||
g_slist_foreach (stream->subtables,
|
||||
(GFunc) mpegts_packetizer_stream_subtable_free, NULL);
|
||||
g_slist_free (stream->subtables);
|
||||
|
@ -984,6 +982,7 @@ mpegts_packetizer_push_section (MpegTSPacketizer2 * packetizer,
|
|||
GST_LOG
|
||||
("PID 0x%04x PUSI and pointer == 0, skipping straight to section_start parsing",
|
||||
packet->pid);
|
||||
mpegts_packetizer_clear_section (stream);
|
||||
goto section_start;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue