summaryrefslogtreecommitdiff
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:02:30 +0100
commit6d1a2efb8ac399a003ea7d3b6f8c641d192567ee (patch)
tree6ea4b8c354266070bdea345582fa1bbc392fa7bf /ffmpeg.c
parentd1d8f866b5400e1cb8ebbd06fde124642e894f31 (diff)
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>
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 840c6214d3..0741eca261 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2542,7 +2542,7 @@ static int transcode_init(void)
AVFormatContext *oc;
OutputStream *ost;
InputStream *ist;
- char error[1024];
+ char error[1024] = {0};
int want_sdp = 1;
for (i = 0; i < nb_filtergraphs; i++) {