avfilter/f_select: check ff_insert_outpad() for failure

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/269/head
Paul B Mahol 7 years ago
parent 730734d4f3
commit 01b986cf18
  1. 5
      libavfilter/f_select.c

@ -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…
Cancel
Save