GNOME Bugzilla – Bug 301717
[PATCH] ffenc_mpeg4 segfaults in _get_caps
Last modified: 2005-04-23 16:07:38 UTC
With current cvs try: gst-launch-0.8 videotestsrc ! video/x-raw-yuv,width=640,height=480,framerate=25.0 ! ffenc_mpeg4 ! avimux ! filesink location="file.avi" I get a segfault with this backtrace:
+ Trace 58609
The attached patch seems to fix it. It just call avcodec_close only when avcodec_open is successfull. I've tested it with valgrind and there are no memleaks (or so valgrind tells me :) )
Created attachment 45590 [details] [review] don't call avcodec_close if avcodec_open fails
applied, thakns.