diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-25 11:04:28 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-25 11:05:09 +0300 |
commit | 01b986cf1819320aff5d5c7a43401bb74a95524a (patch) | |
tree | 7f66709c957faf26e5b8ed4c26017b8a74ff2cd4 /libavfilter/f_select.c | |
parent | 730734d4f3e0f976b50cae9f94588f55e1845473 (diff) |
avfilter/f_select: check ff_insert_outpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r-- | libavfilter/f_select.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index c8602626b5..b1b2cbc21a 100644 --- a/libavfilter/f_select.c +++ b/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; |