Browse code

libavfilter/lavfutils: remove useless NULL check on format context

Fixes: CID733804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/10/18 03:00:31
Showing 1 changed files
... ...
@@ -86,8 +86,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
86 86
 
87 87
 end:
88 88
     avcodec_close(codec_ctx);
89
-    if (format_ctx)
90
-        avformat_close_input(&format_ctx);
89
+    avformat_close_input(&format_ctx);
91 90
     av_freep(&frame);
92 91
 
93 92
     if (ret < 0)