mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtph265depay: Fix Memory leak in error case
https://bugzilla.gnome.org/show_bug.cgi?id=787937
This commit is contained in:
parent
49ed67c4f2
commit
c0622addf6
1 changed files with 2 additions and 0 deletions
|
@ -1237,6 +1237,7 @@ gst_rtp_h265_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
|
||||||
if (rtph265depay->byte_stream) {
|
if (rtph265depay->byte_stream) {
|
||||||
memcpy (map.data, sync_bytes, sizeof (sync_bytes));
|
memcpy (map.data, sync_bytes, sizeof (sync_bytes));
|
||||||
} else {
|
} else {
|
||||||
|
gst_buffer_unmap (outbuf, &map);
|
||||||
goto not_implemented;
|
goto not_implemented;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1402,6 +1403,7 @@ gst_rtp_h265_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
|
||||||
if (rtph265depay->byte_stream) {
|
if (rtph265depay->byte_stream) {
|
||||||
memcpy (map.data, sync_bytes, sizeof (sync_bytes));
|
memcpy (map.data, sync_bytes, sizeof (sync_bytes));
|
||||||
} else {
|
} else {
|
||||||
|
gst_buffer_unmap (outbuf, &map);
|
||||||
goto not_implemented;
|
goto not_implemented;
|
||||||
}
|
}
|
||||||
memcpy (map.data + sizeof (sync_bytes), payload, nalu_size);
|
memcpy (map.data + sizeof (sync_bytes), payload, nalu_size);
|
||||||
|
|
Loading…
Reference in a new issue