1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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>
This commit is contained in:
Michael Niedermayer 2012-12-29 03:20:37 +01:00
parent d59d39e164
commit 53228f47d6

View 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];