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
This commit is contained in:
Belozorov Semen 2014-09-11 16:21:30 +04:00 committed by Tim-Philipp Müller
parent 8990a61221
commit 00d0ff6c8e

View file

@ -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);