mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/f_select: check ff_insert_outpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
730734d4f3
commit
01b986cf18
@ -186,7 +186,10 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
return AVERROR(ENOMEM);
|
||||
pad.type = ctx->filter->inputs[0].type;
|
||||
pad.request_frame = request_frame;
|
||||
ff_insert_outpad(ctx, i, &pad);
|
||||
if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
|
||||
av_freep(&pad.name);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user