mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tspacketizer: ensure that a null pointer isn't accessed
Mitigates segfault due race condition in FLUSH_START handling and mpegts_base_chain.
This commit is contained in:
parent
651203de07
commit
6efd611b8c
1 changed files with 1 additions and 0 deletions
|
@ -2624,6 +2624,7 @@ mpegts_packetizer_next_packet (MpegTSPacketizer2 * packetizer,
|
|||
priv->mapped =
|
||||
(guint8 *) gst_adapter_map (packetizer->adapter, priv->mapped_size);
|
||||
priv->offset = 0;
|
||||
g_return_val_if_fail (priv->mapped, PACKET_NEED_MORE);
|
||||
}
|
||||
packet->data_start = priv->mapped + priv->offset;
|
||||
|
||||
|
|
Loading…
Reference in a new issue