aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 23:02:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-13 17:06:08 +0100
commite9179e6673ba9eb89e81ccb8f3bef84b715a8aee (patch)
tree1709764118cd07dedc10c6a6a27c4bcdc4f3d628
parent633461d8bb1d58838c48b29136f6db58712821c1 (diff)
downloadffmpeg-e9179e6673ba9eb89e81ccb8f3bef84b715a8aee.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 b8f5bbac6d..611d6a8277 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2020,7 +2020,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 */