[FFmpeg-devel] [PATCH 09/10] ffmpeg: init icodec.

Nicolas George nicolas.george at normalesup.org
Thu Jun 7 21:16:30 CEST 2012


With complex filter graphs, it can end up accessed
without having been set.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index d6320bf..928a6fc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2746,7 +2746,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];
-- 
1.7.10



More information about the ffmpeg-devel mailing list