summaryrefslogtreecommitdiffstats
path: root/libavfilter/f_select.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-08-25 10:04:28 +0200
committerPaul B Mahol <onemda@gmail.com>2017-08-25 10:05:09 +0200
commit01b986cf1819320aff5d5c7a43401bb74a95524a (patch)
tree7f66709c957faf26e5b8ed4c26017b8a74ff2cd4 /libavfilter/f_select.c
parent730734d4f3e0f976b50cae9f94588f55e1845473 (diff)
downloadffmpeg-streaming-01b986cf1819320aff5d5c7a43401bb74a95524a.zip
ffmpeg-streaming-01b986cf1819320aff5d5c7a43401bb74a95524a.tar.gz
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index c860262..b1b2cbc 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;
OpenPOWER on IntegriCloud