1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00

avfilter/af_pan: use the new swr used channel layout option

Fixes ticket #10180

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 4561232b1a36b7f8532c7939e4a508734053f6f0)
This commit is contained in:
James Almer 2023-02-17 15:43:30 -03:00
parent a34b348328
commit 34a1403831

View File

@ -313,7 +313,7 @@ static int config_props(AVFilterLink *link)
pan->channel_map[i] = ch_id;
}
av_opt_set_int(pan->swr, "uch", pan->nb_output_channels, 0);
av_opt_set_chlayout(pan->swr, "uchl", &pan->out_channel_layout, 0);
swr_set_channel_mapping(pan->swr, pan->channel_map);
} else {
// renormalize