lavfutils: ff_load_image: Initialize context
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 11 May 2012 13:04:38 +0000 (15:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 May 2012 13:07:26 +0000 (15:07 +0200)
should fix  ticket1264

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/lavfutils.c

index 412a05f..d98c3a6 100644 (file)
@@ -24,7 +24,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
                   const char *filename, void *log_ctx)
 {
     AVInputFormat *iformat = NULL;
-    AVFormatContext *format_ctx;
+    AVFormatContext *format_ctx = NULL;
     AVCodec *codec;
     AVCodecContext *codec_ctx;
     AVFrame *frame;