From 44391f706b0be13e74b2432b57a6597b210a989c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 11 May 2012 15:04:38 +0200 Subject: [PATCH] lavfutils: ff_load_image: Initialize context should fix ticket1264 Signed-off-by: Michael Niedermayer --- libavfilter/lavfutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 412a05fe74..d98c3a6cde 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -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;