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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jul 5 23:27:55 CEST 2011

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.

More information about the ffmpeg-devel mailing list