1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02: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:
James Almer
2025-07-25 00:18:07 -03:00
parent 829680f96a
commit 45810daf4d

View File

@ -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];