[FFmpeg-cvslog] lavfutils: ff_load_image: Initialize context

Michael Niedermayer git at videolan.org
Fri May 11 15:08:04 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 11 15:04:38 2012 +0200| [44391f706b0be13e74b2432b57a6597b210a989c] | committer: Michael Niedermayer

lavfutils: ff_load_image: Initialize context

should fix  ticket1264

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44391f706b0be13e74b2432b57a6597b210a989c
---

 libavfilter/lavfutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c
index 412a05f..d98c3a6 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;



More information about the ffmpeg-cvslog mailing list