OSDN Git Service

libavfilter/lavfutils: remove useless NULL check on format context
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 18:00:31 +0000 (20:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 18:00:31 +0000 (20:00 +0200)
Fixes: CID733804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/lavfutils.c

index 62cf167..8b6b114 100644 (file)
@@ -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)