mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
af_channelmap: ensure the output channel layout is valid.
This commit is contained in:
parent
949c603ed9
commit
8aaab1113c
@ -270,6 +270,12 @@ static av_cold int channelmap_init(AVFilterContext *ctx)
|
|||||||
}
|
}
|
||||||
s->output_layout = fmt;
|
s->output_layout = fmt;
|
||||||
}
|
}
|
||||||
|
if (!s->output_layout) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "Output channel layout is not set and "
|
||||||
|
"cannot be guessed from the maps.\n");
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
}
|
||||||
|
|
||||||
ff_add_channel_layout(&s->channel_layouts, s->output_layout);
|
ff_add_channel_layout(&s->channel_layouts, s->output_layout);
|
||||||
|
|
||||||
if (mode == MAP_PAIR_INT_STR || mode == MAP_PAIR_STR_STR) {
|
if (mode == MAP_PAIR_INT_STR || mode == MAP_PAIR_STR_STR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user