Browse code

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>

Michael Niedermayer authored on 2015/01/09 07:02:30
Showing 1 changed files
... ...
@@ -2521,7 +2521,7 @@ static int transcode_init(void)
2521 2521
     AVFormatContext *oc;
2522 2522
     OutputStream *ost;
2523 2523
     InputStream *ist;
2524
-    char error[1024];
2524
+    char error[1024] = {0};
2525 2525
     int want_sdp = 1;
2526 2526
 
2527 2527
     for (i = 0; i < nb_filtergraphs; i++) {