diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-25 10:01:52 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-25 10:05:07 +0200 |
commit | 730734d4f3e0f976b50cae9f94588f55e1845473 (patch) | |
tree | 0abf4daca148ddc0b30e1bf944068e540349b7f1 /libavfilter/af_channelsplit.c | |
parent | 99dd47a647529a82036682259f4c077dcd3a38af (diff) | |
download | ffmpeg-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.c | 4 |
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: |