Commit 657998b5 authored by Michael Niedermayer's avatar Michael Niedermayer

libavfilter/lavfutils: remove useless NULL check on format context

Fixes: CID733804
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fd9e88fe
......@@ -86,8 +86,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
end:
avcodec_close(codec_ctx);
if (format_ctx)
avformat_close_input(&format_ctx);
avformat_close_input(&format_ctx);
av_freep(&frame);
if (ret < 0)
......
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