[FFmpeg-cvslog] libavfilter/lavfutils: remove useless NULL check on format context
Michael Niedermayer
git at videolan.org
Wed Oct 17 20:35:55 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 17 20:00:31 2012 +0200| [657998b5ee46719ff873ce34ae953385377b0280] | committer: Michael Niedermayer
libavfilter/lavfutils: remove useless NULL check on format context
Fixes: CID733804
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=657998b5ee46719ff873ce34ae953385377b0280
---
libavfilter/lavfutils.c | 3 +--
1 file changed, 1 insertion(+), 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)
More information about the ffmpeg-cvslog
mailing list