ffmpeg: Clear error message array at init.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Jan 2015 22:02:30 +0000 (23:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Jan 2015 16:18:41 +0000 (17:18 +0100)
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>
ffmpeg.c

index ffcb9dd..3868b01 100644 (file)
--- 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++) {