Commit 4e364854 authored by Max Kellermann's avatar Max Kellermann

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

The pointer is invalid if av_open_input_file() fails.
parent a3645984
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment