mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/f_interleave: check ff_insert_inpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
f39136b0a7
commit
9bd1bf382e
@ -110,7 +110,7 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
InterleaveContext *s = ctx->priv;
|
||||
const AVFilterPad *outpad = &ctx->filter->outputs[0];
|
||||
int i;
|
||||
int i, ret;
|
||||
|
||||
s->queues = av_calloc(s->nb_inputs, sizeof(s->queues[0]));
|
||||
if (!s->queues)
|
||||
@ -133,7 +133,10 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
default:
|
||||
av_assert0(0);
|
||||
}
|
||||
ff_insert_inpad(ctx, i, &inpad);
|
||||
if ((ret = ff_insert_inpad(ctx, i, &inpad)) < 0) {
|
||||
av_freep(&inpad.name);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user