diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-17 20:00:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-17 20:00:31 +0200 |
commit | 657998b5ee46719ff873ce34ae953385377b0280 (patch) | |
tree | 403511b4c163181ac9ef95d0fe73e6d18a60672e /libavfilter | |
parent | fd9e88fe6018bc72cd0aa10afc3c1a68df8c6558 (diff) | |
download | ffmpeg-streaming-657998b5ee46719ff873ce34ae953385377b0280.zip ffmpeg-streaming-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')
-rw-r--r-- | libavfilter/lavfutils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 62cf167..8b6b114 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) |