mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02: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>
(cherry picked from commit 1bea3e9ee2)
This commit is contained in:
@@ -375,7 +375,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