mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avfilter/af_channelmap: fix mapping if in_channel was a string but out_channel was not specified
In this case in_channel_idx was never set and the default 0 was used. Suprisingly no one noticed that the respective fate test output was wrong. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -342,7 +342,7 @@ static int channelmap_config_input(AVFilterLink *inlink)
|
||||
for (i = 0; i < s->nch; i++) {
|
||||
struct ChannelMap *m = &s->map[i];
|
||||
|
||||
if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR) {
|
||||
if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR || s->mode == MAP_ONE_STR) {
|
||||
m->in_channel_idx = av_channel_layout_index_from_channel(
|
||||
&inlink->ch_layout, m->in_channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user