Browse code

avf_concat: init pointers to NULL for saftey and to avoid warning of uninitialized use.

Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/12/29 11:20:37
Showing 1 changed files
... ...
@@ -78,8 +78,8 @@ static int query_formats(AVFilterContext *ctx)
78 78
 {
79 79
     ConcatContext *cat = ctx->priv;
80 80
     unsigned type, nb_str, idx0 = 0, idx, str, seg;
81
-    AVFilterFormats *formats, *rates;
82
-    AVFilterChannelLayouts *layouts;
81
+    AVFilterFormats *formats, *rates = NULL;
82
+    AVFilterChannelLayouts *layouts = NULL;
83 83
 
84 84
     for (type = 0; type < TYPE_ALL; type++) {
85 85
         nb_str = cat->nb_streams[type];