From 00d0ff6c8e5546895cc94fb5c61e90f206a8e444 Mon Sep 17 00:00:00 2001 From: Belozorov Semen Date: Thu, 11 Sep 2014 16:21:30 +0400 Subject: [PATCH] mpegpsmux: fix memory leak when converting H.264 avc to byte-stream format Fix memory leak for input stream with caps "video/x-h264,stream-format=avc". https://bugzilla.gnome.org/show_bug.cgi?id=736426 --- gst/mpegpsmux/mpegpsmux_h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mpegpsmux/mpegpsmux_h264.c b/gst/mpegpsmux/mpegpsmux_h264.c index 35189bb6af..bff1aa0f91 100644 --- a/gst/mpegpsmux/mpegpsmux_h264.c +++ b/gst/mpegpsmux/mpegpsmux_h264.c @@ -197,6 +197,7 @@ mpegpsmux_prepare_h264 (GstBuffer * buf, MpegPsPadData * data, MpegPsMux * mux) MIN (nal_size, map.size - in_offset)); in_offset += nal_size; } + gst_buffer_unmap (buf, &map); out_buf = gst_byte_writer_reset_and_get_buffer (&bw);