summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2015-01-08 23:02:30 +0100
committerMichael Niedermayer <[email protected]>2015-01-08 23:10:52 +0100
commit0684cd5d8c929e758133c68cb8dda0bf497e79e0 (patch)
tree82c925db88c399c002ef01c1df3926ff0d9c7b7b
parenta4a87a7efd8b72c0871491bcc85330e14beb8bd6 (diff)
ffmpeg: Clear error message array at init.
This avoids printing uninitialized bytes if no error message is set Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 6d1a2efb8ac399a003ea7d3b6f8c641d192567ee) Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a906186b1b..d5667734e9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2284,7 +2284,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++) {