mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
qsvh264dec,qsvh265dec: Fix nalu leaks
Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3514 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6781>
This commit is contained in:
parent
ec42cedf63
commit
e6b9a45bfe
2 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ gst_qsv_h264_dec_process_input (GstQsvDecoder * decoder,
|
|||
memcpy (data + sizeof (start_code), nalu.data + nalu.offset, nalu.size);
|
||||
|
||||
mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, size, 0, size,
|
||||
nullptr, (GDestroyNotify) g_free);
|
||||
data, (GDestroyNotify) g_free);
|
||||
gst_buffer_append_memory (new_buf, mem);
|
||||
} while (pres == GST_H264_PARSER_OK);
|
||||
|
||||
|
|
|
@ -421,7 +421,7 @@ gst_qsv_h265_dec_process_input (GstQsvDecoder * decoder,
|
|||
memcpy (data + sizeof (start_code), nalu.data + nalu.offset, nalu.size);
|
||||
|
||||
mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, size, 0, size,
|
||||
nullptr, (GDestroyNotify) g_free);
|
||||
data, (GDestroyNotify) g_free);
|
||||
gst_buffer_append_memory (new_buf, mem);
|
||||
} while (pres == GST_H265_PARSER_OK);
|
||||
|
||||
|
|
Loading…
Reference in a new issue