summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-07 20:49:24 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-09 08:42:50 +0200
commitfbaa8fe6c66efdc97330f9343385eb6bb76e5339 (patch)
tree1b7e9a42f8fb9fee8c8fc63b2642fefffa1015e2 /ffmpeg.c
parent8362d734a3521b49fbc4942da49d45969e73c067 (diff)
downloadffmpeg-streaming-fbaa8fe6c66efdc97330f9343385eb6bb76e5339.zip
ffmpeg-streaming-fbaa8fe6c66efdc97330f9343385eb6bb76e5339.tar.gz
ffmpeg: init icodec.
With complex filter graphs, it can end up accessed without having been set.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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];
OpenPOWER on IntegriCloud