[Ffmpeg-devel] Re: Memory leaks with some codecs... (again)

Michael Niedermayer michaelni
Mon Feb 6 13:45:55 CET 2006


Hi

On Mon, Feb 06, 2006 at 10:33:32AM -0000, Wolfram Gloger wrote:
> Hi,
> 
> > That's NO candidate for av_mallocz_static. Instead, the codec context must
> > be freed when no longer used (i.e. before the corresponding AVStream is 
> > freed).
> 
> Here's a patch.  It might be better to have an
> av_free_format_context() which does the same as the last few lines in
> output_example.c..

fixed

[...]
-- 
Michael





More information about the ffmpeg-devel mailing list