mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
codecs: h265decoder: Fix per-slice leak
As documented, slice header parsed via gst_h265_parser_parse_slice_hdr() should be cleared, otherwise it would result in memory leak. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1274>
This commit is contained in:
parent
4a4823b972
commit
17bf17b38d
1 changed files with 6 additions and 0 deletions
|
@ -650,6 +650,12 @@ gst_h265_decoder_parse_slice (GstH265Decoder * self, GstH265NalUnit * nalu,
|
|||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
/* NOTE: gst_h265_parser_parse_slice_hdr() allocates array
|
||||
* GstH265SliceHdr::entry_point_offset_minus1 but we don't use it
|
||||
* in this h265decoder baseclass at the moment
|
||||
*/
|
||||
gst_h265_slice_hdr_free (&priv->current_slice.header);
|
||||
|
||||
priv->current_slice.nalu = *nalu;
|
||||
|
||||
if (priv->current_slice.header.dependent_slice_segment_flag) {
|
||||
|
|
Loading…
Reference in a new issue