From 53228f47d6892b5c93db3df6c9a77aa88b8b7b5c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 29 Dec 2012 03:20:37 +0100 Subject: avf_concat: init pointers to NULL for saftey and to avoid warning of uninitialized use. Reviewed-by: Nicolas George Signed-off-by: Michael Niedermayer --- libavfilter/avf_concat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/avf_concat.c') 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]; -- cgit v1.2.3