mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avfilter/af_channelmap: always set out_channel in the map
Fixes use-of-uninitialized-value. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -290,6 +290,7 @@ static av_cold int channelmap_init(AVFilterContext *ctx)
|
||||
for (i = 0; i < s->nch; i++) {
|
||||
s->map[i].in_channel_idx = i;
|
||||
s->map[i].out_channel_idx = i;
|
||||
s->map[i].out_channel = av_channel_layout_channel_from_index(&s->output_layout, i);
|
||||
}
|
||||
} else if (s->nch != s->output_layout.nb_channels) {
|
||||
char buf[256];
|
||||
|
||||
Reference in New Issue
Block a user