[Libav-user] muxing.c, memory leak

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Nov 4 14:26:56 CET 2012


Denis <info at ...> writes:

> Using valgrind I obtain a memory leak in this row:
> 
> "pAVStream= add_video_stream(pAVFormatContext, &pAVCodec, 
> pAVOutputFormat->video_codec);"
> if (posix_memalign(&ptr,ALIGN,size))
> av_mallocz in mem.c:95

Could you post the valgrind output?

> Can anybody verifies if 
> is true?
> 
> I have an application that uses ffmpeg. In 2 weeks the 
> application uses all the memory and now I suspect that 
> the problem is in the wrong use of ffmpeg libraries.

You could run valgrind on your application.

Carl Eugen



More information about the Libav-user mailing list