avfilter/af_channelsplit: check ff_insert_outpad() for failure

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-08-25 10:01:52 +02:00
parent 99dd47a647
commit 730734d4f3

View File

@ -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: