diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-29 03:20:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-29 18:56:33 +0100 |
commit | 53228f47d6892b5c93db3df6c9a77aa88b8b7b5c (patch) | |
tree | 95e0a1f64b8c4b791dcb8080597c95399e6f2c45 | |
parent | d59d39e1642569b68249c922ae01a59bfe52747b (diff) | |
download | ffmpeg-53228f47d6892b5c93db3df6c9a77aa88b8b7b5c.tar.gz |
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>
-rw-r--r-- | libavfilter/avf_concat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]; |