Fix av_open_input_stream with uninitialized context pointer.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 5 Jul 2011 21:10:44 +0000 (23:10 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 6 Jul 2011 18:17:43 +0000 (20:17 +0200)
commit4e59c8ecf1433b85b539c5e89bb68cfe8b839866
tree0b072640e01ac28aa33f0e11e76b1d70556e3363
parent3950376b8baa6292f2f195dae43d7b00bcbf53e7
Fix av_open_input_stream with uninitialized context pointer.

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

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/utils.c