diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2021-04-20 19:43:53 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-08-25 10:38:51 +0100 |
commit | a91c5670f793513a77a9d88a859773c8baacf171 (patch) | |
tree | c83cdd2909aabc90c447a934f7a18899464a4691 | |
parent | 5ff895d3ceaf25d90f55083f8e53c0098b4ba4e8 (diff) | |
download | gstreamer-plugins-bad-a91c5670f793513a77a9d88a859773c8baacf171.tar.gz |
openh264enc: fix header buffer leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2478>
-rw-r--r-- | ext/openh264/gstopenh264enc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index 90f7ca8eb..1f11a63d1 100644 --- a/ext/openh264/gstopenh264enc.cpp +++ b/ext/openh264/gstopenh264enc.cpp @@ -1003,7 +1003,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder, frame_info.sLayerInfo[i].pNalLengthInByte[j]); } } - headers = g_list_append (headers, gst_buffer_ref (hdr)); + headers = g_list_append (headers, hdr); /* take ownership of hdr */ } gst_buffer_fill (frame->output_buffer, buf_length, frame_info.sLayerInfo[i].pBsBuf, layer_size); buf_length += layer_size; |