aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 23:02:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-06-10 02:13:08 +0200
commitc2439cad51015dc34c9b2c56e779ec46acde9ae9 (patch)
treebdefc8d46102ac84e58818ddc8e148b195183286
parent59fc55b29738a6436489d1b9de112e35ad12a23d (diff)
downloadffmpeg-c2439cad51015dc34c9b2c56e779ec46acde9ae9.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 2f18bc1b9b..e8d281589c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2086,7 +2086,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 */