mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
d59d39e164
commit
53228f47d6
|
@ -78,8 +78,8 @@ static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
ConcatContext *cat = ctx->priv;
|
ConcatContext *cat = ctx->priv;
|
||||||
unsigned type, nb_str, idx0 = 0, idx, str, seg;
|
unsigned type, nb_str, idx0 = 0, idx, str, seg;
|
||||||
AVFilterFormats *formats, *rates;
|
AVFilterFormats *formats, *rates = NULL;
|
||||||
AVFilterChannelLayouts *layouts;
|
AVFilterChannelLayouts *layouts = NULL;
|
||||||
|
|
||||||
for (type = 0; type < TYPE_ALL; type++) {
|
for (type = 0; type < TYPE_ALL; type++) {
|
||||||
nb_str = cat->nb_streams[type];
|
nb_str = cat->nb_streams[type];
|
||||||
|
|
Loading…
Reference in New Issue