mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/af_channelsplit: check ff_insert_outpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
99dd47a647
commit
730734d4f3
@ -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…
Reference in New Issue
Block a user