From 4e364854ab2d617dde418d26b50d19480431f813 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 27 Feb 2010 19:25:56 +0100 Subject: [PATCH] decoder/ffmpeg: don't close the AVFormatContext after open failure The pointer is invalid if av_open_input_file() fails. --- src/decoder/ffmpeg_decoder_plugin.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c index 10086b34b..37ed3bd48 100644 --- a/src/decoder/ffmpeg_decoder_plugin.c +++ b/src/decoder/ffmpeg_decoder_plugin.c @@ -256,7 +256,6 @@ ffmpeg_decode(struct decoder *decoder, struct input_stream *input) //ffmpeg works with ours "fileops" helper if (av_open_input_file(&format_context, stream.url, NULL, 0, NULL) != 0) { g_warning("Open failed\n"); - av_close_input_file(format_context); return; }