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-09 17:18:41 +0100
commit07c9df792cd4ee1c13243ea5c27d0a64b13e9d80 (patch)
tree987b44b0a85a2e4aabf6bc5f63d67a6b711aaf9b /ffmpeg.c
parent3b4e9dddcff61eaf01a9a5b63c1abcc4102a313a (diff)
downloadffmpeg-07c9df792cd4ee1c13243ea5c27d0a64b13e9d80.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 ffcb9dd92e..3868b017ad 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2461,7 +2461,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++) {