Browse Source

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>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
53228f47d6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/avf_concat.c

+ 2
- 2
libavfilter/avf_concat.c 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];


Loading…
Cancel
Save