mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
mpegtsbase: Don't leak corrupt section packet buffer
This commit is contained in:
parent
881350f34c
commit
cd728627af
1 changed files with 3 additions and 1 deletions
|
@ -1399,9 +1399,11 @@ mpegts_base_chain (GstPad * pad, GstBuffer * buf)
|
|||
based = mpegts_base_handle_psi (base, §ion);
|
||||
gst_buffer_unref (section.buffer);
|
||||
|
||||
if (G_UNLIKELY (!based))
|
||||
if (G_UNLIKELY (!based)) {
|
||||
gst_buffer_unref (packet.buffer);
|
||||
/* bad PSI table */
|
||||
goto next;
|
||||
}
|
||||
}
|
||||
/* we need to push section packet downstream */
|
||||
res = mpegts_base_push (base, &packet, §ion);
|
||||
|
|
Loading…
Reference in a new issue