Commit 730734d4 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_channelsplit: check ff_insert_outpad() for failure

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 99dd47a6
...@@ -71,7 +71,9 @@ static av_cold int init(AVFilterContext *ctx) ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment