[FFmpeg-user] Memory leaks in ffmpeg 2.2

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Mar 31 10:42:18 CEST 2014


praks411 <praks411 <at> gmail.com> writes:

> I'm using ffmpeg in my project for quite sometime. 
> Recently I shifted to ffmpeg 2.2 and I'm seeing 
> memory leaks which were not there earlier. Debugging 
> further I found just by calling  avformat_alloc_context() 
> and then freeing the context using avformat_close_input(). 
> I getting memory leaks of 87bytes.

This was discussed at length on ffmpeg-devel, it is 
apparently unavoidable if you like dynamic linking.

> Also if I go further and call avformat_open_input and
> avformat_find_stream. The memory leaks increases.

I am not sure if these are the same, valgrind output 
would probably help to judge.

Carl Eugen



More information about the ffmpeg-user mailing list