GNOME Bugzilla – Bug 736426
mpegpsmux: memory leak with h264/avc stream
Last modified: 2014-09-11 18:28:08 UTC
Hi! Memory leak occures, if input h264 stream have stream-format=avc. To detect this problem can be used next pipeline: videotestsrc ! x264enc ! mpegpsmux ! filesink location="new.ps"
Created attachment 285889 [details] [review] Fix memory leak in mpegpsmux
To fix memory leak need unmap "map" variable in file mpegpsmux_h264.c in function mpegpsmux_prepare_h264. Please check and commit to master.
Comment on attachment 285889 [details] [review] Fix memory leak in mpegpsmux Thanks for the patch, could you please provide it in git format-patch format with full name and commit message? Thanks!
Created attachment 285904 [details] [review] Fix memory leak in mpegpsmux (format-patch) Thanks for your reply! I'm sorry, this is my first patch. Now everything is fine?
Yes, perfect, many thanks. Pushed to master, will probably pick into 1.4 as well: commit 00d0ff6c8e5546895cc94fb5c61e90f206a8e444 Author: Belozorov Semen <skiminokD@gmail.com> Date: Thu Sep 11 16:21:30 2014 +0400 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