From fbaa8fe6c66efdc97330f9343385eb6bb76e5339 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Thu, 7 Jun 2012 20:49:24 +0200 Subject: [PATCH] ffmpeg: init icodec. With complex filter graphs, it can end up accessed without having been set. --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index c73f286884..9eaad71112 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2747,7 +2747,7 @@ static int transcode_init(void) { int ret = 0, i, j, k; AVFormatContext *oc; - AVCodecContext *codec, *icodec; + AVCodecContext *codec, *icodec = NULL; OutputStream *ost; InputStream *ist; char error[1024];