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:
parent
a3645984cd
commit
4e364854ab
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue