diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c index 6be2c53778..079d55d564 100644 --- a/libavfilter/avf_concat.c +++ b/libavfilter/avf_concat.c @@ -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];