summaryrefslogtreecommitdiff
path: root/libavfilter/lavfutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-17 20:00:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-17 20:00:31 +0200
commit657998b5ee46719ff873ce34ae953385377b0280 (patch)
tree403511b4c163181ac9ef95d0fe73e6d18a60672e /libavfilter/lavfutils.c
parentfd9e88fe6018bc72cd0aa10afc3c1a68df8c6558 (diff)
downloadffmpeg-657998b5ee46719ff873ce34ae953385377b0280.tar.gz
libavfilter/lavfutils: remove useless NULL check on format context
Fixes: CID733804 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/lavfutils.c')
-rw-r--r--libavfilter/lavfutils.c3
1 files changed, 1 insertions, 2 deletions
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)