aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_channelsplit.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-08-25 10:01:52 +0200
committerPaul B Mahol <onemda@gmail.com>2017-08-25 10:05:07 +0200
commit730734d4f3e0f976b50cae9f94588f55e1845473 (patch)
tree0abf4daca148ddc0b30e1bf944068e540349b7f1 /libavfilter/af_channelsplit.c
parent99dd47a647529a82036682259f4c077dcd3a38af (diff)
downloadffmpeg-730734d4f3e0f976b50cae9f94588f55e1845473.tar.gz
avfilter/af_channelsplit: check ff_insert_outpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_channelsplit.c')
-rw-r--r--libavfilter/af_channelsplit.c4
1 files changed, 3 insertions, 1 deletions
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: