aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 23:02:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 23:11:00 +0100
commit08fe58ef3280134bbaafef83442005d68342cac6 (patch)
treec0fdc0994c94eb22a4326d29e06f9d6f20921662
parent8a3a3e3154b78c8d90d3b62c38054a959911b79f (diff)
downloadffmpeg-08fe58ef3280134bbaafef83442005d68342cac6.tar.gz
ffmpeg: Clear error message array at init.
This avoids printing uninitialized bytes if no error message is set Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 6d1a2efb8ac399a003ea7d3b6f8c641d192567ee) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 0a79e0b837..1aaf9ec469 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2092,7 +2092,7 @@ static int transcode_init(void)
AVCodecContext *codec;
OutputStream *ost;
InputStream *ist;
- char error[1024];
+ char error[1024] = {0};
int want_sdp = 1;
/* init framerate emulation */