[FFmpeg-cvslog] ffmpeg: init icodec.
Nicolas George
git at videolan.org
Sat Jun 9 09:28:36 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jun 7 20:49:24 2012 +0200| [fbaa8fe6c66efdc97330f9343385eb6bb76e5339] | committer: Nicolas George
ffmpeg: init icodec.
With complex filter graphs, it can end up accessed
without having been set.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fbaa8fe6c66efdc97330f9343385eb6bb76e5339
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index c73f286..9eaad71 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];
More information about the ffmpeg-cvslog
mailing list