aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
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:10:54 +0100
commitccca7ae8c6dba1a98d6ecfb1c6ae2f5c2bb32253 (patch)
treedf49c3998a53da50d09764aa5bfd617ecb23a140 /ffmpeg.c
parent5a98a000018e0563ddf3316d1594cc438b0c696e (diff)
downloadffmpeg-ccca7ae8c6dba1a98d6ecfb1c6ae2f5c2bb32253.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>
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 9aa094ead1..d0124e7efb 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2117,7 +2117,7 @@ static int transcode_init(void)
AVCodecContext *codec;
OutputStream *ost;
InputStream *ist;
- char error[1024];
+ char error[1024] = {0};
int want_sdp = 1;
for (i = 0; i < nb_filtergraphs; i++) {