avfilter/af_channelsplit: check ff_insert_outpad() for failure

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/269/head
Paul B Mahol 7 years ago
parent 99dd47a647
commit 730734d4f3
  1. 4
      libavfilter/af_channelsplit.c

@ -71,7 +71,9 @@ static av_cold int init(AVFilterContext *ctx)
pad.type = AVMEDIA_TYPE_AUDIO; pad.type = AVMEDIA_TYPE_AUDIO;
pad.name = av_get_channel_name(channel); 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: fail:

Loading…
Cancel
Save