You've already forked FFmpeg
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:
@ -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