From 730734d4f3e0f976b50cae9f94588f55e1845473 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 25 Aug 2017 10:01:52 +0200 Subject: avfilter/af_channelsplit: check ff_insert_outpad() for failure Signed-off-by: Paul B Mahol --- libavfilter/af_channelsplit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavfilter') diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index 248eaca7e0..8c6b00fe4f 100644 --- a/libavfilter/af_channelsplit.c +++ b/libavfilter/af_channelsplit.c @@ -71,7 +71,9 @@ static av_cold int init(AVFilterContext *ctx) pad.type = AVMEDIA_TYPE_AUDIO; pad.name = av_get_channel_name(channel); - ff_insert_outpad(ctx, i, &pad); + if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) { + return ret; + } } fail: -- cgit v1.2.3