From 34a14038318939fffe7fed038282007faef96e80 Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 17 Feb 2023 15:43:30 -0300 Subject: avfilter/af_pan: use the new swr used channel layout option Fixes ticket #10180 Signed-off-by: James Almer (cherry picked from commit 4561232b1a36b7f8532c7939e4a508734053f6f0) --- libavfilter/af_pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index 067f646805..4672648d46 100644 --- a/libavfilter/af_pan.c +++ b/libavfilter/af_pan.c @@ -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 -- cgit v1.2.1