[FFmpeg-devel] [PATCH] Fix av_open_input_stream with uninitialized context pointer.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Jul 6 08:22:20 CEST 2011

On 6 Jul 2011, at 02:11, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Jul 05, 2011 at 11:27:55PM +0200, Reimar Döffinger wrote:
>> On Tue, Jul 05, 2011 at 11:27:12PM +0200, Reimar Döffinger wrote:
>>> Code would allocate a new context but forget to assign it
>>> to the pointer actually passed to avformat_open_input,
>>> potentially causing a crash.
>>> Even if it was initialized it would cause a memleak.
>>> This caused crashes with e.g. mpd, see also
>>> http://bugs.gentoo.org/show_bug.cgi?id=373423
>> And yes, it seems this needs to go into all branches.
> should be ok

Anyone feel free to push, otherwise I'll do it this evening at earliest.

More information about the ffmpeg-devel mailing list