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>
Tue, 5 Jul 2011 21:26:16 +0000 (23:26 +0200)
commite8baa8eb7f45bb5fdbfcc70ae028cd11238faa88
treee0660ba0f1f3de8941dcc039d72b37045b780295
parentb6fe44b9db4f204ff0794401e495b73688b50c3d
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