[FFmpeg-devel] [PATCH] Fix for rc_eq memory leak

Art Clarke aclarke
Thu Jul 31 20:21:45 CEST 2008

Stefano submitted a fix for the rc_eq setting bug earlier this month:

As he pointed out, this introduced a memory leak on AVFormatContext:rc_eq.

This patch fixes one cause of leaking this in the libav* libraries (for well
behaved applications): closing an input stream.

There isn't an easy fix for programs that allocate their own AVFormatContext
objects (e.g. for output).  Folks will have to fix their sources for that.

Tests with both ffmpeg and vlideshow pass @ 100%, and leak is visible before
fix and not after fix.

- Art
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080731/b3b0082a/attachment.txt>

More information about the ffmpeg-devel mailing list