From: Michael Niedermayer Date: Wed, 17 Oct 2012 18:00:31 +0000 (+0200) Subject: libavfilter/lavfutils: remove useless NULL check on format context X-Git-Tag: android-x86-4.4-r1~8768 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=657998b5ee46719ff873ce34ae953385377b0280;p=android-x86%2Fexternal-ffmpeg.git libavfilter/lavfutils: remove useless NULL check on format context Fixes: CID733804 Signed-off-by: Michael Niedermayer --- diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 62cf167328..8b6b1145fc 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -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)