avf_concat: init pointers to NULL for saftey and to avoid warning of uninitialized...
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 02:20:37 +0000 (03:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 17:56:33 +0000 (18:56 +0100)
Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avf_concat.c

index 6be2c53..079d55d 100644 (file)
@@ -78,8 +78,8 @@ static int query_formats(AVFilterContext *ctx)
 {
     ConcatContext *cat = ctx->priv;
     unsigned type, nb_str, idx0 = 0, idx, str, seg;
-    AVFilterFormats *formats, *rates;
-    AVFilterChannelLayouts *layouts;
+    AVFilterFormats *formats, *rates = NULL;
+    AVFilterChannelLayouts *layouts = NULL;
 
     for (type = 0; type < TYPE_ALL; type++) {
         nb_str = cat->nb_streams[type];