mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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);
|
based = mpegts_base_handle_psi (base, §ion);
|
||||||
gst_buffer_unref (section.buffer);
|
gst_buffer_unref (section.buffer);
|
||||||
|
|
||||||
if (G_UNLIKELY (!based))
|
if (G_UNLIKELY (!based)) {
|
||||||
|
gst_buffer_unref (packet.buffer);
|
||||||
/* bad PSI table */
|
/* bad PSI table */
|
||||||
goto next;
|
goto next;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* we need to push section packet downstream */
|
/* we need to push section packet downstream */
|
||||||
res = mpegts_base_push (base, &packet, §ion);
|
res = mpegts_base_push (base, &packet, §ion);
|
||||||
|
|
Loading…
Reference in a new issue