decoder/ffmpeg: don't close the AVFormatContext after open failure

The pointer is invalid if av_open_input_file() fails.
This commit is contained in:
Max Kellermann 2010-02-27 19:25:56 +01:00
parent a3645984cd
commit 4e364854ab
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}